Skip to content

Commit 8db94fc

Browse files
Improve feature testing
1 parent c6634f2 commit 8db94fc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

features/plugin.feature

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,11 @@ Feature: Manage WordPress plugins
6767
| Zombieland | active | none | 0.1.0 |
6868

6969
When I try `wp plugin uninstall Zombieland`
70-
Then STDERR should contain:
71-
"""
72-
The 'Zombieland' plugin is active.
73-
"""
74-
And STDERR should contain:
70+
Then STDERR should be:
7571
"""
72+
Warning: The 'Zombieland' plugin is active.
7673
Error: No plugins uninstalled.
7774
"""
78-
And STDOUT should be empty
7975
And the return code should be 1
8076

8177
When I run `wp plugin deactivate Zombieland`

0 commit comments

Comments
 (0)