@@ -50,10 +50,7 @@ Feature: Install WordPress plugins
5050 """
5151 Plugin installed successfully.
5252 """
53- And STDOUT should contain:
54- """
55- Renamed Github-based project from 'modern-wordpress-master' to 'modern-wordpress'.
56- """
53+ And STDOUT should match /Renamed Github-based project from 'modern-(?:wordpress|framework)-master' to 'modern-wordpress' /
5754 # Wrong directory.
5855 And the wp-content/plugins/modern-wordpress directory should exist
5956 And the wp-content/plugins/modern-framework directory should not exist
@@ -117,9 +114,16 @@ Feature: Install WordPress plugins
117114 Given a WP install
118115
119116 When I try `wp plugin install user-switching user-switching-not-a-plugin`
120- 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:
121126 """
122- Warning: Couldn't find 'user-switching-not-a-plugin' in the WordPress.org plugin directory.
123127 Error: Only installed 1 of 2 plugins.
124128 """
125129 And STDOUT should contain:
@@ -144,9 +148,16 @@ Feature: Install WordPress plugins
144148 And the return code should be 0
145149
146150 When I try `wp plugin install user-switching-not-a-plugin`
147- 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:
148160 """
149- Warning: Couldn't find 'user-switching-not-a-plugin' in the WordPress.org plugin directory.
150161 Error: No plugins installed.
151162 """
152163 And the return code should be 1
0 commit comments