@@ -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