@@ -32,7 +32,7 @@ Feature: Disable auto-updates for WordPress plugins
3232 """
3333 And the return code should be 0
3434
35- @require-wp-5.5
35+ @require-wp-5.5 @require-mysql
3636 Scenario : Disable auto-updates for all plugins
3737 When I run `wp plugin auto-updates disable --all`
3838 Then STDOUT should be:
@@ -41,7 +41,16 @@ Feature: Disable auto-updates for WordPress plugins
4141 """
4242 And the return code should be 0
4343
44- @require-wp-5.5
44+ @require-wp-5.5 @require-sqlite
45+ Scenario : Disable auto-updates for all plugins
46+ When I run `wp plugin auto-updates disable --all`
47+ Then STDOUT should be:
48+ """
49+ Success: Disabled 4 of 4 plugin auto-updates.
50+ """
51+ And the return code should be 0
52+
53+ @require-wp-5.5 @require-mysql
4554 Scenario : Disable auto-updates for already disabled plugins
4655 When I run `wp plugin auto-updates disable hello`
4756 And I try `wp plugin auto-updates disable --all`
@@ -54,7 +63,20 @@ Feature: Disable auto-updates for WordPress plugins
5463 Error: Only disabled 2 of 3 plugin auto-updates.
5564 """
5665
57- @require-wp-5.5
66+ @require-wp-5.5 @require-sqlite
67+ Scenario : Disable auto-updates for already disabled plugins
68+ 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+ """
78+
79+ @require-wp-5.5 @require-mysql
5880 Scenario : Filter when enabling auto-updates for already disabled plugins
5981 When I run `wp plugin auto-updates disable hello`
6082 And I run `wp plugin auto-updates disable --all --enabled-only`
@@ -64,6 +86,16 @@ Feature: Disable auto-updates for WordPress plugins
6486 """
6587 And the return code should be 0
6688
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`
93+ Then STDOUT should be:
94+ """
95+ Success: Disabled 3 of 3 plugin auto-updates.
96+ """
97+ And the return code should be 0
98+
6799 @require-wp-5.5
68100 Scenario : Filter when enabling auto-updates for already disabled selection of plugins
69101 When I run `wp plugin auto-updates disable hello`
0 commit comments