Skip to content

Commit 3bcf32c

Browse files
authored
Merge pull request #272 from wp-cli/fix-tests
Fix failing tests
2 parents 223ee68 + d1f5269 commit 3bcf32c

File tree

2 files changed

+18
-56
lines changed

2 files changed

+18
-56
lines changed

features/core-check-update.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Feature: Check for more recent versions
1313
Then STDOUT should be a table containing rows:
1414
| version | update_type | package_url |
1515
| {WP_VERSION-latest} | major | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-latest}.zip |
16-
| {WP_VERSION-5.8-latest} | minor | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
16+
| {WP_VERSION-5.8-latest} | minor | https://downloads.w.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
1717

1818
When I run `wp core check-update --format=count`
1919
Then STDOUT should be:
@@ -35,7 +35,7 @@ Feature: Check for more recent versions
3535
When I run `wp core check-update --minor`
3636
Then STDOUT should be a table containing rows:
3737
| version | update_type | package_url |
38-
| {WP_VERSION-5.8-latest} | minor | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
38+
| {WP_VERSION-5.8-latest} | minor | https://downloads.w.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
3939

4040
When I run `wp core check-update --minor --format=count`
4141
Then STDOUT should be:

features/core-update.feature

Lines changed: 16 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Feature: Update WordPress core
259259
When I run `wp post create --post_title='Test post' --porcelain`
260260
Then STDOUT should be a number
261261

262-
# This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0+
262+
# This test downgrades to an older WordPress version, but the SQLite plugin requires 6.4+
263263
@require-mysql
264264
Scenario: Make sure files are cleaned up with mixed case
265265
Given a WP install
@@ -270,69 +270,31 @@ Feature: Update WordPress core
270270
Then the wp-includes/Requests/Exception/Transport/cURL.php file should exist
271271
Then the wp-includes/Requests/Exception/HTTP/502.php file should exist
272272
Then the wp-includes/Requests/IRI.php file should exist
273-
Then the wp-includes/Requests/Transport/Curl.php file should not exist
274-
Then the wp-includes/Requests/Exception/Transport/Curl.php file should not exist
275-
Then the wp-includes/Requests/Exception/Http/Status502.php file should not exist
276-
Then the wp-includes/Requests/Iri.php file should not exist
273+
Then the wp-includes/Requests/src/Transport/Curl.php file should not exist
274+
Then the wp-includes/Requests/src/Exception/Transport/Curl.php file should not exist
275+
Then the wp-includes/Requests/src/Exception/Http/Status502.php file should not exist
276+
Then the wp-includes/Requests/src/Iri.php file should not exist
277+
And STDOUT should contain:
278+
"""
279+
Cleaning up files...
280+
"""
277281
And STDOUT should contain:
278282
"""
279283
Success: WordPress updated successfully.
280284
"""
281285

282-
When I run `wp core update --version=5.9-beta1 --force`
286+
When I run `wp core update --version=6.2 --force`
283287
Then the wp-includes/Requests/Transport/cURL.php file should not exist
284288
Then the wp-includes/Requests/Exception/Transport/cURL.php file should not exist
285289
Then the wp-includes/Requests/Exception/HTTP/502.php file should not exist
286290
Then the wp-includes/Requests/IRI.php file should not exist
287-
Then the wp-includes/Requests/Transport/Curl.php file should exist
288-
Then the wp-includes/Requests/Exception/Transport/Curl.php file should exist
289-
Then the wp-includes/Requests/Exception/Http/Status502.php file should exist
290-
Then the wp-includes/Requests/Iri.php file should exist
291-
Then STDOUT should contain:
291+
Then the wp-includes/Requests/src/Transport/Curl.php file should exist
292+
Then the wp-includes/Requests/src/Exception/Transport/Curl.php file should exist
293+
Then the wp-includes/Requests/src/Exception/Http/Status502.php file should exist
294+
Then the wp-includes/Requests/src/Iri.php file should exist
295+
And STDOUT should contain:
292296
"""
293-
File removed: wp-includes/Requests/Transport/fsockopen.php
294-
File removed: wp-includes/Requests/Transport/cURL.php
295-
File removed: wp-includes/Requests/Hooker.php
296-
File removed: wp-includes/Requests/IPv6.php
297-
File removed: wp-includes/Requests/Exception/Transport/cURL.php
298-
File removed: wp-includes/Requests/Exception/HTTP.php
299-
File removed: wp-includes/Requests/Exception/HTTP/502.php
300-
File removed: wp-includes/Requests/Exception/HTTP/Unknown.php
301-
File removed: wp-includes/Requests/Exception/HTTP/412.php
302-
File removed: wp-includes/Requests/Exception/HTTP/408.php
303-
File removed: wp-includes/Requests/Exception/HTTP/431.php
304-
File removed: wp-includes/Requests/Exception/HTTP/501.php
305-
File removed: wp-includes/Requests/Exception/HTTP/500.php
306-
File removed: wp-includes/Requests/Exception/HTTP/407.php
307-
File removed: wp-includes/Requests/Exception/HTTP/416.php
308-
File removed: wp-includes/Requests/Exception/HTTP/428.php
309-
File removed: wp-includes/Requests/Exception/HTTP/406.php
310-
File removed: wp-includes/Requests/Exception/HTTP/504.php
311-
File removed: wp-includes/Requests/Exception/HTTP/411.php
312-
File removed: wp-includes/Requests/Exception/HTTP/414.php
313-
File removed: wp-includes/Requests/Exception/HTTP/511.php
314-
File removed: wp-includes/Requests/Exception/HTTP/410.php
315-
File removed: wp-includes/Requests/Exception/HTTP/403.php
316-
File removed: wp-includes/Requests/Exception/HTTP/400.php
317-
File removed: wp-includes/Requests/Exception/HTTP/505.php
318-
File removed: wp-includes/Requests/Exception/HTTP/413.php
319-
File removed: wp-includes/Requests/Exception/HTTP/404.php
320-
File removed: wp-includes/Requests/Exception/HTTP/306.php
321-
File removed: wp-includes/Requests/Exception/HTTP/304.php
322-
File removed: wp-includes/Requests/Exception/HTTP/405.php
323-
File removed: wp-includes/Requests/Exception/HTTP/429.php
324-
File removed: wp-includes/Requests/Exception/HTTP/417.php
325-
File removed: wp-includes/Requests/Exception/HTTP/409.php
326-
File removed: wp-includes/Requests/Exception/HTTP/402.php
327-
File removed: wp-includes/Requests/Exception/HTTP/418.php
328-
File removed: wp-includes/Requests/Exception/HTTP/305.php
329-
File removed: wp-includes/Requests/Exception/HTTP/415.php
330-
File removed: wp-includes/Requests/Exception/HTTP/401.php
331-
File removed: wp-includes/Requests/Exception/HTTP/503.php
332-
File removed: wp-includes/Requests/IRI.php
333-
File removed: wp-includes/Requests/IDNAEncoder.php
334-
File removed: wp-includes/Requests/SSL.php
335-
File removed: wp-includes/Requests/Proxy/HTTP.php
297+
Cleaning up files...
336298
"""
337299

338300
When I run `wp option add str_opt 'bar'`

0 commit comments

Comments
 (0)