@@ -32,21 +32,15 @@ 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=active --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
@@ -76,23 +70,17 @@ Feature: Disable auto-updates for WordPress plugins
7670 Error: Only disabled 3 of 4 plugin auto-updates.
7771 """
7872
79- @require-wp-5.5 @require-mysql
73+ @require-wp-5.5
8074 Scenario : Filter when enabling auto-updates for already disabled plugins
8175 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
8876
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`
77+ When I run `wp plugin list --status=active --format=count`
78+ Then save STDOUT as {PLUGIN_COUNT}
79+
80+ When I run `wp plugin auto-updates disable --all --enabled-only`
9381 Then STDOUT should be:
9482 """
95- Success: Disabled 3 of 3 plugin auto-updates.
83+ Success: Disabled {PLUGIN_COUNT} of {PLUGIN_COUNT} plugin auto-updates.
9684 """
9785 And the return code should be 0
9886
0 commit comments