Skip to content

Commit 50c4a75

Browse files
committed
Add another test to plugin-list.feature.
Signed-off-by: Saul Baizman <[email protected]>
1 parent c815ae4 commit 50c4a75

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

features/plugin-list.feature

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,12 @@ Feature: List WordPress plugins
5353
When I run `wp plugin list --fields=name,status,update --force-check`
5454
Then STDOUT should be a table containing rows:
5555
| name | status | update |
56-
| hello-dolly | inactive | none |
56+
| hello-dolly | inactive | none |
57+
58+
When I try `wp plugin list --skip-update-check --force-check`
59+
Then STDERR should contain:
60+
"""
61+
Error: plugin updates cannot be both force-checked and skipped. Choose one.
62+
"""
63+
And STDOUT should be empty
64+
And the return code should be 1

0 commit comments

Comments
 (0)