@@ -32,25 +32,19 @@ Feature: Disable auto-updates for WordPress plugins
3232 """
3333 And the return code should be 0
3434
35- @require-wp-5.5 @require-mysql
35+ @require-wp-5.5
3636 Scenario : Disable auto-updates for all plugins
37- When I run `wp plugin auto-updates disable --all`
38- Then STDOUT should be:
39- """
40- Success: Disabled 3 of 3 plugin auto-updates.
41- """
42- And the return code should be 0
37+ When I run `wp plugin list --status=inactive --format=count`
38+ Then save STDOUT as {PLUGIN_COUNT}
4339
44- @require-wp-5.5 @require-sqlite
45- Scenario : Disable auto-updates for all plugins
4640 When I run `wp plugin auto-updates disable --all`
4741 Then STDOUT should be:
4842 """
49- Success: Disabled 4 of 4 plugin auto-updates.
43+ Success: Disabled {PLUGIN_COUNT} of {PLUGIN_COUNT} plugin auto-updates.
5044 """
5145 And the return code should be 0
5246
53- @require-wp-5.5 @require-mysql
47+ @require-wp-5.5
5448 Scenario : Disable auto-updates for already disabled plugins
5549 When I run `wp plugin auto-updates disable hello`
5650 And I try `wp plugin auto-updates disable --all`
@@ -63,41 +57,22 @@ Feature: Disable auto-updates for WordPress plugins
6357 Error: Only disabled 2 of 3 plugin auto-updates.
6458 """
6559
66- @require-wp-5.5 @require-sqlite
67- Scenario : Disable auto-updates for already disabled plugins
60+ @require-wp-5.5
61+ Scenario : Filter when disabling auto-updates for already enabled plugins
6862 When I run `wp plugin auto-updates disable hello`
69- And I try `wp plugin auto-updates disable --all`
70- Then STDERR should contain:
71- """
72- Warning: Auto-updates already disabled for plugin hello.
73- """
74- And STDERR should contain:
75- """
76- Error: Only disabled 3 of 4 plugin auto-updates.
77- """
7863
79- @require-wp-5.5 @require-mysql
80- Scenario : Filter when enabling auto-updates for already disabled plugins
81- When I run `wp plugin auto-updates disable hello`
82- And I run `wp plugin auto-updates disable --all --enabled-only`
83- Then STDOUT should be:
84- """
85- Success: Disabled 2 of 2 plugin auto-updates.
86- """
87- And the return code should be 0
64+ When I run `wp plugin list --auto_update=on --format=count`
65+ Then save STDOUT as {PLUGIN_COUNT}
8866
89- @require-wp-5.5 @require-sqlite
90- Scenario : Filter when enabling auto-updates for already disabled plugins
91- When I run `wp plugin auto-updates disable hello`
92- And I run `wp plugin auto-updates disable --all --enabled-only`
67+ When I run `wp plugin auto-updates disable --all --enabled-only`
9368 Then STDOUT should be:
9469 """
95- Success: Disabled 3 of 3 plugin auto-updates.
70+ Success: Disabled {PLUGIN_COUNT} of {PLUGIN_COUNT} plugin auto-updates.
9671 """
9772 And the return code should be 0
9873
9974 @require-wp-5.5
100- Scenario : Filter when enabling auto-updates for already disabled selection of plugins
75+ Scenario : Filter when disabling auto-updates for already disabled selection of plugins
10176 When I run `wp plugin auto-updates disable hello`
10277 And I run `wp plugin auto-updates disable hello duplicate-post --enabled-only`
10378 Then STDOUT should be:
0 commit comments