File tree Expand file tree Collapse file tree 4 files changed +21
-13
lines changed
Expand file tree Collapse file tree 4 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Feature: Disable auto-updates for WordPress plugins
3434
3535 @require-wp-5.5
3636 Scenario : Disable auto-updates for all plugins
37- When I run `wp plugin list --format=count`
37+ When I run `wp plugin list --status=inactive -- format=count`
3838 Then save STDOUT as {PLUGIN_COUNT}
3939
4040 When I run `wp plugin auto-updates disable --all`
@@ -74,7 +74,7 @@ Feature: Disable auto-updates for WordPress plugins
7474 Scenario : Filter when disabling auto-updates for already enabled plugins
7575 When I run `wp plugin auto-updates disable hello`
7676
77- When I run `wp plugin list --auto_update=enabled --format=count`
77+ When I run `wp plugin list --auto_update=on --format=count`
7878 Then save STDOUT as {PLUGIN_COUNT}
7979
8080 When I run `wp plugin auto-updates disable --all --enabled-only`
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Feature: Enable auto-updates for WordPress plugins
3333
3434 @require-wp-5.5
3535 Scenario : Enable auto-updates for all plugins
36- When I run `wp plugin list --format=count`
36+ When I run `wp plugin list --status=inactive -- format=count`
3737 Then save STDOUT as {PLUGIN_COUNT}
3838
3939 When I run `wp plugin auto-updates enable --all`
@@ -72,7 +72,7 @@ Feature: Enable auto-updates for WordPress plugins
7272 @require-wp-5.5
7373 Scenario : Filter when enabling auto-updates for already enabled plugins
7474 When I run `wp plugin auto-updates enable hello`
75- And I run `wp plugin list --auto_update=disabled --format=count`
75+ And I run `wp plugin list --status=inactive -- auto_update=off --format=count`
7676 Then save STDOUT as {PLUGIN_COUNT}
7777
7878 When I run `wp plugin auto-updates enable --all --disabled-only`
Original file line number Diff line number Diff line change @@ -80,6 +80,17 @@ Feature: Deactivate WordPress plugins
8080 Success: No plugins deactivated.
8181 """
8282
83+ @require-mysql
84+ Scenario : Adding --exclude with plugin deactivate --all should exclude the plugins specified via --exclude
85+ When I try `wp plugin deactivate --all --exclude=hello`
86+ Then STDOUT should be:
87+ """
88+ Plugin 'akismet' deactivated.
89+ Success: Deactivated 1 of 1 plugins.
90+ """
91+ And the return code should be 0
92+
93+ @require-sqlite
8394 Scenario : Adding --exclude with plugin deactivate --all should exclude the plugins specified via --exclude
8495 When I try `wp plugin deactivate --all --exclude=hello`
8596 Then STDOUT should be:
Original file line number Diff line number Diff line change @@ -425,23 +425,20 @@ Feature: Manage WordPress plugins
425425 Installing Debug Bar List Script & Style Dependencies
426426 """
427427
428+ # Disabled for SQLite because this tests a specific list of plugins.
429+ @require-mysql
428430 Scenario : Enable and disable all plugins
429431 Given a WP install
430432
431- When I run `wp plugin list --format=count`
432- Then save STDOUT as {PLUGIN_COUNT}
433-
434- # Uses "try" because the SQLite plugin attempts to do a redirect.
435- # See https://github.com/WordPress/sqlite-database-integration/issues/49
436- When I try `wp plugin activate --all`
437- Then STDOUT should be:
433+ When I run `wp plugin activate --all`
434+ Then STDOUT should contain:
438435 """
439436 Plugin 'akismet' activated.
440437 Plugin 'hello' activated.
441- Success: Activated {PLUGIN_COUNT} of {PLUGIN_COUNT} plugins.
438+ Success: Activated 2 of 2 plugins.
442439 """
443440
444- When I try `wp plugin activate --all`
441+ When I run `wp plugin activate --all`
445442 Then STDOUT should be:
446443 """
447444 Success: Plugins already activated.
You can’t perform that action at this time.
0 commit comments