Skip to content

Commit 181f416

Browse files
Resolve tests failures from WordPress 6.2 (#229)
* Update test to use minor version with a download offer WordPress.org stopped offering download offers for 3.9 * Remove test for esoteric condition that we can't reproduce * Remove the other test associated with the esoteric condition
1 parent 33b3ba0 commit 181f416

File tree

2 files changed

+3
-60
lines changed

2 files changed

+3
-60
lines changed

features/core-check-update.feature

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,3 @@ Feature: Check for more recent versions
4040
"""
4141
1
4242
"""
43-
44-
Scenario: No minor updates for an unlocalized WordPress release
45-
Given a WP install
46-
And I try `wp theme install twentytwenty --activate`
47-
48-
# If current WP_VERSION is nightly, trunk or old then from checksums might not exist, so STDERR may or may not be empty.
49-
When I try `wp core download --version=4.0 --locale=es_ES --force`
50-
Then STDOUT should contain:
51-
"""
52-
Success: WordPress downloaded.
53-
"""
54-
And the return code should be 0
55-
56-
# WP core throws notice for PHP 8+.
57-
When I try `wp core check-update --minor`
58-
Then STDOUT should be a table containing rows:
59-
| version | update_type | package_url |
60-
| {WP_VERSION-4.0-latest} | minor | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-4.0-latest}-partial-0.zip |

features/core-update.feature

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,19 @@ Feature: Update WordPress core
6767
Given a WP install
6868
And I try `wp theme install twentytwenty --activate`
6969

70-
When I run `wp core download --version=3.9.9 --force`
70+
When I run `wp core download --version=4.1.30 --force`
7171
Then STDOUT should not be empty
7272

7373
# This version of WP throws a PHP notice
7474
When I try `wp core update --minor`
7575
Then STDOUT should contain:
7676
"""
77-
Updating to version {WP_VERSION-3.9-latest}
77+
Updating to version {WP_VERSION-4.1-latest}
7878
"""
7979
And STDOUT should contain:
8080
"""
8181
Success: WordPress updated successfully.
8282
"""
83-
And STDERR should contain:
84-
"""
85-
Undefined variable
86-
"""
8783
And the return code should be 0
8884

8985
When I run `wp core update --minor`
@@ -95,7 +91,7 @@ Feature: Update WordPress core
9591
When I run `wp core version`
9692
Then STDOUT should be:
9793
"""
98-
{WP_VERSION-3.9-latest}
94+
{WP_VERSION-4.1-latest}
9995
"""
10096

10197
Scenario: Core update from cache
@@ -326,41 +322,6 @@ Feature: Update WordPress core
326322
When I run `wp post create --post_title='Test post' --porcelain`
327323
Then STDOUT should be a number
328324

329-
@less-than-php-7.3
330-
Scenario: Minor update on an unlocalized WordPress release
331-
Given a WP install
332-
And I try `wp theme install twentytwenty --activate`
333-
And an empty cache
334-
335-
# If current WP_VERSION is nightly, trunk or old then from checksums might not exist, so STDERR may or may not be empty.
336-
When I try `wp core download --version=4.0 --locale=es_ES --force`
337-
Then STDOUT should contain:
338-
"""
339-
Success: WordPress downloaded.
340-
"""
341-
And the return code should be 0
342-
343-
# No checksums available for this WP version/locale
344-
Given I run `wp option set WPLANG es_ES`
345-
When I try `wp core update --minor`
346-
Then STDOUT should contain:
347-
"""
348-
Updating to version {WP_VERSION-4.0-latest} (en_US)...
349-
"""
350-
And STDOUT should contain:
351-
"""
352-
https://downloads.wordpress.org/release/wordpress-{WP_VERSION-4.0-latest}-partial-0.zip
353-
"""
354-
And STDOUT should contain:
355-
"""
356-
Success: WordPress updated successfully.
357-
"""
358-
And STDERR should be:
359-
"""
360-
Warning: Checksums not available for WordPress {WP_VERSION-4.0-latest}/es_ES. Please cleanup files manually.
361-
"""
362-
And the return code should be 0
363-
364325
@require-php-5.6
365326
Scenario Outline: Use `--version=(nightly|trunk)` to update to the latest nightly version
366327
Given a WP install

0 commit comments

Comments
 (0)