You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/requests.feature
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,8 @@ Feature: Requests integration with both v1 and v2
145
145
"""
146
146
require __DIR__ . "/../vendor/autoload.php";
147
147
"""
148
+
And the {RUN_DIR}/vendor/wp-cli/wp-cli/bundle/rmccue/requests directory should exist
149
+
And the {RUN_DIR}/vendor/rmccue/requests directory should not exist
148
150
149
151
When I run `vendor/bin/wp config create --dbname={DB_NAME} --dbuser={DB_USER} --dbpass={DB_PASSWORD} --dbhost={DB_HOST} --extra-php < extra-config.php`
150
152
Then STDOUT should be:
@@ -170,7 +172,8 @@ Feature: Requests integration with both v1 and v2
170
172
Success: Database created.
171
173
"""
172
174
173
-
When I run `vendor/bin/wp core install --url=localhost:8181 --title=Composer --admin_user=admin --admin_password=password [email protected]`
175
+
# This can throw deprecated warnings on PHP 8.1+.
176
+
When I try `vendor/bin/wp core install --url=localhost:8181 --title=Composer --admin_user=admin --admin_password=password [email protected]`
174
177
Then STDOUT should contain:
175
178
"""
176
179
Success: WordPress installed successfully.
@@ -182,7 +185,8 @@ Feature: Requests integration with both v1 and v2
182
185
6.1
183
186
"""
184
187
185
-
When I run `vendor/bin/wp eval 'var_dump( \WP_CLI\Utils\http_request( "GET", "https://example.com/" ) );'`
188
+
# This can throw deprecated warnings on PHP 8.1+.
189
+
When I try `vendor/bin/wp eval 'var_dump( \WP_CLI\Utils\http_request( "GET", "https://example.com/" ) );'`
186
190
Then STDOUT should contain:
187
191
"""
188
192
object(Requests_Response)
@@ -191,9 +195,9 @@ Feature: Requests integration with both v1 and v2
191
195
"""
192
196
HTTP/1.1 200 OK
193
197
"""
194
-
And STDERR should be empty
195
198
196
-
When I run `vendor/bin/wp plugin install duplicate-post --activate`
199
+
# This can throw deprecated warnings on PHP 8.1+.
200
+
When I try `vendor/bin/wp plugin install duplicate-post --activate`
0 commit comments