@@ -2,7 +2,7 @@ Feature: Show the status of auto-updates for WordPress plugins
22
33 Background :
44 Given a WP install
5- And I run `wp plugin install duplicate-post --ignore-requirements`
5+ And I run `wp plugin install duplicate-post https://github.com/wp-cli/sample-plugin/archive/refs/heads/master.zip --ignore-requirements`
66
77 @require-wp-5.5
88 Scenario : Show an error if required params are missing
@@ -15,19 +15,19 @@ Feature: Show the status of auto-updates for WordPress plugins
1515
1616 @require-wp-5.5
1717 Scenario : Show the status of auto-updates of a single plugin
18- When I run `wp plugin auto-updates status hello `
18+ When I run `wp plugin auto-updates status sample-plugin `
1919 Then STDOUT should be a table containing rows:
2020 | name | status |
21- | hello | disabled |
21+ | sample - plugin | disabled |
2222 And the return code should be 0
2323
2424 @require-wp-5.5
2525 Scenario : Show the status of auto-updates multiple plugins
26- When I run `wp plugin auto-updates status duplicate-post hello `
26+ When I run `wp plugin auto-updates status duplicate-post sample-plugin `
2727 Then STDOUT should be a table containing rows:
2828 | name | status |
2929 | duplicate -post | disabled |
30- | hello | disabled |
30+ | sample - plugin | disabled |
3131 And the return code should be 0
3232
3333 @require-wp-5.5
@@ -37,7 +37,7 @@ Feature: Show the status of auto-updates for WordPress plugins
3737 | name | status |
3838 | akismet | disabled |
3939 | duplicate -post | disabled |
40- | hello | disabled |
40+ | sample - plugin | disabled |
4141 And the return code should be 0
4242
4343 When I run `wp plugin auto-updates enable --all`
@@ -46,25 +46,25 @@ Feature: Show the status of auto-updates for WordPress plugins
4646 | name | status |
4747 | akismet | enabled |
4848 | duplicate -post | enabled |
49- | hello | enabled |
49+ | sample - plugin | enabled |
5050 And the return code should be 0
5151
5252 @require-wp-5.5
5353 Scenario : The status can be filtered to only show enabled or disabled plugins
54- Given I run `wp plugin auto-updates enable hello `
54+ Given I run `wp plugin auto-updates enable sample-plugin `
5555
5656 When I run `wp plugin auto-updates status --all`
5757 Then STDOUT should be a table containing rows:
5858 | name | status |
5959 | akismet | disabled |
6060 | duplicate -post | disabled |
61- | hello | enabled |
61+ | sample - plugin | enabled |
6262 And the return code should be 0
6363
6464 When I run `wp plugin auto-updates status --all --enabled-only`
6565 Then STDOUT should be a table containing rows:
6666 | name | status |
67- | hello | enabled |
67+ | sample - plugin | enabled |
6868 And the return code should be 0
6969
7070 When I run `wp plugin auto-updates status --all --disabled-only`
@@ -83,7 +83,7 @@ Feature: Show the status of auto-updates for WordPress plugins
8383
8484 @require-wp-5.5
8585 Scenario : The fields can be shown individually
86- Given I run `wp plugin auto-updates enable hello `
86+ Given I run `wp plugin auto-updates enable sample-plugin `
8787
8888 When I run `wp plugin auto-updates status --all --disabled-only --field=name`
8989 Then STDOUT should be:
@@ -92,7 +92,7 @@ Feature: Show the status of auto-updates for WordPress plugins
9292 duplicate-post
9393 """
9494
95- When I run `wp plugin auto-updates status hello --field=status`
95+ When I run `wp plugin auto-updates status sample-plugin --field=status`
9696 Then STDOUT should be:
9797 """
9898 enabled
@@ -103,21 +103,21 @@ Feature: Show the status of auto-updates for WordPress plugins
103103 When I run `wp plugin auto-updates status --all --format=json`
104104 Then STDOUT should be:
105105 """
106- [{"name":"akismet","status":"disabled"},{"name":"hello ","status":"disabled"},{"name":"duplicate-post","status":"disabled"}]
106+ [{"name":"akismet","status":"disabled"},{"name":"sample-plugin ","status":"disabled"},{"name":"duplicate-post","status":"disabled"}]
107107 """
108108
109109 When I run `wp plugin auto-updates status --all --format=csv`
110110 Then STDOUT should be:
111111 """
112112 name,status
113113 akismet,disabled
114- hello ,disabled
114+ sample-plugin ,disabled
115115 duplicate-post,disabled
116116 """
117117
118118 @require-wp-5.5
119119 Scenario : Handle malformed option value
120120 When I run `wp option update auto_update_plugins "" `
121- And I try `wp plugin auto-updates status hello `
121+ And I try `wp plugin auto-updates status sample-plugin `
122122 Then the return code should be 0
123123 And STDERR should be empty
0 commit comments