Skip to content

Commit 72f99b0

Browse files
schlesseraclaude
andcommitted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f188c41 commit 72f99b0

3 files changed

Lines changed: 21 additions & 11 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"wp-cli/db-command": "^1.3 || ^2 || ^3",
2121
"wp-cli/entity-command": "^1.3 || ^2 || ^3",
2222
"wp-cli/extension-command": "^1.2 || ^2 || ^3",
23-
"wp-cli/wp-cli-tests": "^5"
23+
"wp-cli/wp-cli-tests": "dev-setup-commands-step as 5.3.99"
2424
},
2525
"config": {
2626
"process-timeout": 7200,

‎features/core-check-update-db.feature‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ Feature: Check if WordPress database update is needed
6161
"""
6262
And I try `wp theme install twentytwenty --activate`
6363
And I run `wp core download --version=6.6 --force`
64-
And I run `wp option update db_version 57155 --require=disable_sidebar_check.php`
65-
And I run `wp site option update wpmu_upgrade_site 57155`
64+
And these setup commands:
65+
| command |
66+
| wp option update db_version 57155 --require=disable_sidebar_check.php |
67+
| wp site option update wpmu_upgrade_site 57155 |
6668
And I run `wp site create --slug=foo`
6769
And I run `wp site create --slug=bar`
6870
And I run `wp site create --slug=burrito --porcelain`

‎features/core-update-db.feature‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ Feature: Update core's database
7777
"""
7878
And I try `wp theme install twentytwenty --activate`
7979
And I run `wp core download --version=5.4 --force`
80-
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`
81-
And I run `wp site option update wpmu_upgrade_site 45805`
80+
And these setup commands:
81+
| command |
82+
| wp option update db_version 45805 --require=disable_sidebar_check.php |
83+
| wp site option update wpmu_upgrade_site 45805 |
8284
And I run `wp site create --slug=foo`
8385
And I run `wp site create --slug=bar`
8486
And I run `wp site create --slug=burrito --porcelain`
@@ -122,8 +124,10 @@ Feature: Update core's database
122124
"""
123125
And I try `wp theme install twentytwenty --activate`
124126
And I run `wp core download --version=5.4 --force`
125-
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`
126-
And I run `wp site option update wpmu_upgrade_site 45805`
127+
And these setup commands:
128+
| command |
129+
| wp option update db_version 45805 --require=disable_sidebar_check.php |
130+
| wp site option update wpmu_upgrade_site 45805 |
127131
And I run `wp site create --slug=foo`
128132
And I run `wp site create --slug=bar`
129133
And I run `wp site create --slug=burrito --porcelain`
@@ -179,8 +183,10 @@ Feature: Update core's database
179183
"""
180184
And I try `wp theme install twentytwenty --activate`
181185
And I run `wp core download --version=5.4 --force`
182-
And I run `wp option update db_version 45805 --require=disable_sidebar_check.php`
183-
And I run `wp site option update wpmu_upgrade_site 45805`
186+
And these setup commands:
187+
| command |
188+
| wp option update db_version 45805 --require=disable_sidebar_check.php |
189+
| wp site option update wpmu_upgrade_site 45805 |
184190
# Create 2 additional sites in network 1 (main site already exists; 3 total in network 1)
185191
And I run `wp site create --slug=net1-site1`
186192
And I run `wp site create --slug=net1-site2`
@@ -190,8 +196,10 @@ Feature: Update core's database
190196
And I run `wp site create --slug=net2-site2 --porcelain`
191197
And save STDOUT as {NET2_SITE2_ID}
192198
# Register a second network (ID=2) and reassign those two blogs to it
193-
And I run `wp eval 'global $wpdb; $wpdb->insert( $wpdb->site, [ "domain" => "example.com", "path" => "/network2/" ] );'`
194-
And I run `wp eval 'global $wpdb; $wpdb->update( $wpdb->blogs, [ "site_id" => 2 ], [ "blog_id" => {NET2_SITE1_ID} ] ); $wpdb->update( $wpdb->blogs, [ "site_id" => 2 ], [ "blog_id" => {NET2_SITE2_ID} ] );'`
199+
And these setup commands:
200+
| command |
201+
| wp eval 'global $wpdb; $wpdb->insert( $wpdb->site, [ "domain" => "example.com", "path" => "/network2/" ] );' |
202+
| wp eval 'global $wpdb; $wpdb->update( $wpdb->blogs, [ "site_id" => 2 ], [ "blog_id" => {NET2_SITE1_ID} ] ); $wpdb->update( $wpdb->blogs, [ "site_id" => 2 ], [ "blog_id" => {NET2_SITE2_ID} ] );' |
195203

196204
When I run `wp site option get wpmu_upgrade_site`
197205
Then save STDOUT as {UPDATE_VERSION}

0 commit comments

Comments
 (0)