@@ -67,23 +67,19 @@ Feature: Update WordPress core
67
67
Given a WP install
68
68
And I try `wp theme install twentytwenty --activate`
69
69
70
- When I run `wp core download --version=3.9.9 --force`
70
+ When I run `wp core download --version=4.1.30 --force`
71
71
Then STDOUT should not be empty
72
72
73
73
# This version of WP throws a PHP notice
74
74
When I try `wp core update --minor`
75
75
Then STDOUT should contain:
76
76
"""
77
- Updating to version {WP_VERSION-3.9 -latest}
77
+ Updating to version {WP_VERSION-4.1 -latest}
78
78
"""
79
79
And STDOUT should contain:
80
80
"""
81
81
Success: WordPress updated successfully.
82
82
"""
83
- And STDERR should contain:
84
- """
85
- Undefined variable
86
- """
87
83
And the return code should be 0
88
84
89
85
When I run `wp core update --minor`
@@ -95,7 +91,7 @@ Feature: Update WordPress core
95
91
When I run `wp core version`
96
92
Then STDOUT should be:
97
93
"""
98
- {WP_VERSION-3.9 -latest}
94
+ {WP_VERSION-4.1 -latest}
99
95
"""
100
96
101
97
Scenario : Core update from cache
@@ -326,41 +322,6 @@ Feature: Update WordPress core
326
322
When I run `wp post create --post_title='Test post' --porcelain`
327
323
Then STDOUT should be a number
328
324
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
-
364
325
@require-php-5.6
365
326
Scenario Outline : Use `--version=(nightly|trunk)` to update to the latest nightly version
366
327
Given a WP install
0 commit comments