Skip to content

Commit 33ca1ef

Browse files
schlesseraclaude
andauthored
Run setup commands in a single process in tests (#351)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e8a7876 commit 33ca1ef

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎features/core-update-db.feature‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@ Feature: Update core's database
205205
And I run `wp site create --slug=net2-site2 --porcelain`
206206
And save STDOUT as {NET2_SITE2_ID}
207207
# Register a second network (ID=2) and reassign those two blogs to it
208-
And I run `wp eval 'global $wpdb; $wpdb->insert( $wpdb->site, [ "domain" => "example.com", "path" => "/network2/" ] );'`
209-
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} ] );'`
208+
And these setup commands:
209+
| command |
210+
| wp eval 'global $wpdb; $wpdb->insert( $wpdb->site, [ "domain" => "example.com", "path" => "/network2/" ] );' |
211+
| 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} ] );' |
210212

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

0 commit comments

Comments
 (0)