Skip to content

Commit f59c2e2

Browse files
committed
Fix DB Upgrade tests for PHP 7.4
1 parent 462ba21 commit f59c2e2

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

features/core-update-db.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Feature: Update core's database
22

33
Scenario: Update db on a single site
44
Given a WP install
5-
And I run `wp core download --version=4.1 --force`
6-
And I run `wp option update db_version 29630`
5+
And I run `wp core download --version=5.4 --force`
6+
And I run `wp option update db_version 45805`
77

88
When I run `wp core update-db`
99
Then STDOUT should contain:
@@ -19,8 +19,8 @@ Feature: Update core's database
1919

2020
Scenario: Dry run update db on a single site
2121
Given a WP install
22-
And I run `wp core download --version=4.1 --force`
23-
And I run `wp option update db_version 29630`
22+
And I run `wp core download --version=5.4 --force`
23+
And I run `wp option update db_version 45805`
2424

2525
When I run `wp core update-db --dry-run`
2626
Then STDOUT should be:
@@ -37,9 +37,9 @@ Feature: Update core's database
3737

3838
Scenario: Update db across network
3939
Given a WP multisite install
40-
And I run `wp core download --version=4.1 --force`
41-
And I run `wp option update db_version 29630`
42-
And I run `wp site option update wpmu_upgrade_site 29630`
40+
And I run `wp core download --version=5.4 --force`
41+
And I run `wp option update db_version 45805`
42+
And I run `wp site option update wpmu_upgrade_site 45805`
4343
And I run `wp site create --slug=foo`
4444
And I run `wp site create --slug=bar`
4545
And I run `wp site create --slug=burrito --porcelain`
@@ -69,9 +69,9 @@ Feature: Update core's database
6969

7070
Scenario: Update db across network, dry run
7171
Given a WP multisite install
72-
And I run `wp core download --version=4.1 --force`
73-
And I run `wp option update db_version 29630`
74-
And I run `wp site option update wpmu_upgrade_site 29630`
72+
And I run `wp core download --version=5.4 --force`
73+
And I run `wp option update db_version 45805`
74+
And I run `wp site option update wpmu_upgrade_site 45805`
7575
And I run `wp site create --slug=foo`
7676
And I run `wp site create --slug=bar`
7777
And I run `wp site create --slug=burrito --porcelain`

0 commit comments

Comments
 (0)