File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,9 +114,16 @@ Feature: Install WordPress plugins
114114 Given a WP install
115115
116116 When I try `wp plugin install user-switching user-switching-not-a-plugin`
117- Then STDERR should be:
117+ Then STDERR should contain:
118+ """
119+ Warning:
120+ """
121+ And STDERR should contain:
122+ """
123+ user-switching-not-a-plugin
124+ """
125+ And STDERR should contain:
118126 """
119- Warning: Couldn't find 'user-switching-not-a-plugin' in the WordPress.org plugin directory.
120127 Error: Only installed 1 of 2 plugins.
121128 """
122129 And STDOUT should contain:
@@ -141,9 +148,16 @@ Feature: Install WordPress plugins
141148 And the return code should be 0
142149
143150 When I try `wp plugin install user-switching-not-a-plugin`
144- Then STDERR should be:
151+ Then STDERR should contain:
152+ """
153+ Warning:
154+ """
155+ And STDERR should contain:
156+ """
157+ user-switching-not-a-plugin
158+ """
159+ And STDERR should contain:
145160 """
146- Warning: Couldn't find 'user-switching-not-a-plugin' in the WordPress.org plugin directory.
147161 Error: No plugins installed.
148162 """
149163 And the return code should be 1
Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ Feature: Install WordPress themes
44 Given a WP install
55
66 When I try `wp theme install p2 p2-not-a-theme`
7- Then STDERR should be:
7+ Then STDERR should contain:
8+ """
9+ Warning:
10+ """
11+ And STDERR should contain:
12+ """
13+ p2-not-a-theme
14+ """
15+ And STDERR should contain:
816 """
9- Warning: Couldn't find 'p2-not-a-theme' in the WordPress.org theme directory.
1017 Error: Only installed 1 of 2 themes.
1118 """
1219 And STDOUT should contain:
@@ -31,9 +38,16 @@ Feature: Install WordPress themes
3138 And the return code should be 0
3239
3340 When I try `wp theme install p2-not-a-theme`
34- Then STDERR should be:
41+ Then STDERR should contain:
42+ """
43+ Warning:
44+ """
45+ And STDERR should contain:
46+ """
47+ p2-not-a-theme
48+ """
49+ And STDERR should contain:
3550 """
36- Warning: Couldn't find 'p2-not-a-theme' in the WordPress.org theme directory.
3751 Error: No themes installed.
3852 """
3953 And STDOUT should be empty
Original file line number Diff line number Diff line change @@ -180,9 +180,13 @@ Feature: Manage WordPress themes and plugins
180180 When I try `wp <type> install an-impossible-slug-because-abc3fr`
181181 Then STDERR should contain:
182182 """
183- Warning: Couldn't find 'an-impossible-slug-because-abc3fr' in the WordPress.org <type> directory.
183+ Warning:
184184 """
185- Then STDERR should contain:
185+ And STDERR should contain:
186+ """
187+ an-impossible-slug-because-abc3fr
188+ """
189+ And STDERR should contain:
186190 """
187191 Error: No <type>s installed.
188192 """
You can’t perform that action at this time.
0 commit comments