11Feature : Update WordPress core
22
3- # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0 +
3+ # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.4 +
44 @require-mysql
55 Scenario : Update from a ZIP file
66 Given a WP install
77 And I try `wp theme install twentytwenty --activate`
88
9- When I run `wp core download --version=4.9 --force`
9+ When I run `wp core download --version=6.2 --force`
1010 Then STDOUT should not be empty
1111
12- When I run `wp eval 'echo $GLOBALS["wp_version"];' `
12+ When I try `wp eval 'echo $GLOBALS["wp_version"];' `
1313 Then STDOUT should be:
1414 """
15- 4.9
15+ 6.2
1616 """
1717
18- When I run `wget http://wordpress.org/wordpress-4.9 .zip --quiet`
19- And I run `wp core update wordpress-4.9 .zip`
18+ When I run `wget http://wordpress.org/wordpress-6.2 .zip --quiet`
19+ And I run `wp core update wordpress-6.2 .zip`
2020 Then STDOUT should be:
2121 """
2222 Starting update...
2323 Unpacking the update...
2424 Success: WordPress updated successfully.
2525 """
2626
27- When I run `wp eval 'echo $GLOBALS["wp_version"];' `
27+ When I try `wp eval 'echo $GLOBALS["wp_version"];' `
2828 Then STDOUT should be:
2929 """
30- 4.9
30+ 6.2
3131 """
3232
33- # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0 +
33+ # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.4 +
3434 @require-mysql
3535 Scenario : Update to the latest minor release (PHP 7.2 compatible with WP >= 4.9)
3636 Given a WP install
3737 And I try `wp theme install twentytwenty --activate`
3838
39- When I run `wp core download --version=4.9.25 --force`
39+ When I run `wp core download --version=6.2.5 --force`
4040 Then STDOUT should contain:
4141 """
4242 Success: WordPress downloaded.
@@ -46,7 +46,7 @@ Feature: Update WordPress core
4646 When I try `wp core update --minor`
4747 Then STDOUT should contain:
4848 """
49- Updating to version {WP_VERSION-4.9 -latest}
49+ Updating to version {WP_VERSION-6.2 -latest}
5050 """
5151 And STDOUT should contain:
5252 """
@@ -63,17 +63,17 @@ Feature: Update WordPress core
6363 When I run `wp core version`
6464 Then STDOUT should be:
6565 """
66- {WP_VERSION-4.9 -latest}
66+ {WP_VERSION-6.2 -latest}
6767 """
6868
69- # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.0 +
69+ # This test downgrades to an older WordPress version, but the SQLite plugin requires 6.4 +
7070 @require-mysql
7171 Scenario : Core update from cache
7272 Given a WP install
7373 And I try `wp theme install twentytwenty --activate`
7474 And an empty cache
7575
76- When I run `wp core update --version=4.9.25 --force`
76+ When I run `wp core update --version=6.2.5 --force`
7777 Then STDOUT should not contain:
7878 """
7979 Using cached file
@@ -83,13 +83,13 @@ Feature: Update WordPress core
8383 Downloading
8484 """
8585
86- When I run `wp core update --version=5 .0 --force`
86+ When I run `wp core update --version=6 .0 --force`
8787 Then STDOUT should not be empty
8888
89- When I run `wp core update --version=4.9.25 --force`
89+ When I run `wp core update --version=6.2.5 --force`
9090 Then STDOUT should contain:
9191 """
92- Using cached file '{SUITE_CACHE_DIR}/core/wordpress-4.9.25 -en_US.zip'...
92+ Using cached file '{SUITE_CACHE_DIR}/core/wordpress-6.2.5 -en_US.zip'...
9393 """
9494 And STDOUT should not contain:
9595 """
0 commit comments