You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update updates the `page` post-type definition and sets `template-locked` as the new default rendering mode for the block editor.
Props mamaduka, wildworks, joemcgill, tyb, swissspidy, audrasjb.
Fixes #61811.
git-svn-id: https://develop.svn.wordpress.org/trunk@59885 602fd350-edb4-49c9-b593-d223f7449a82
$this->assertEmpty( $single_site_notoptions_cache, 'Single site notoptions cache should not be set for multisite installs.' );
390
-
$this->assertIsArray( $network_notoptions_cache, 'Multisite notoptions cache should be set.' );
391
-
$this->assertArrayHasKey( 'ticket_61730_notoption', $network_notoptions_cache, 'The option should be in the notoptions cache.' );
392
+
$this->assertSame( $single_site_notoptions_cache_before, $single_site_notoptions_cache_after, 'Single site notoptions cache should not change for multisite installs.' );
393
+
$this->assertNotSame( $network_notoptions_cache_before, $network_notoptions_cache_after, 'Multisite notoptions cache should change.' );
394
+
$this->assertIsArray( $network_notoptions_cache_after, 'Multisite notoptions cache should be set.' );
395
+
$this->assertArrayHasKey( 'ticket_61730_notoption', $network_notoptions_cache_after, 'The option should be in the notoptions cache.' );
392
396
}
393
397
394
398
/**
@@ -402,14 +406,18 @@ public function test_get_network_option_does_not_use_single_site_notoptions_cach
$this->assertEmpty( $single_site_notoptions_cache, 'Single site notoptions cache should not be set for multisite installs.' );
412
-
$this->assertIsArray( $network_notoptions_cache, 'Multisite notoptions cache should be set.' );
413
-
$this->assertArrayHasKey( 'ticket_61730_notoption', $network_notoptions_cache, 'The option should be in the notoptions cache.' );
418
+
$this->assertSame( $single_site_notoptions_cache_before, $single_site_notoptions_cache_after, 'Single site notoptions cache should not change for multisite installs.' );
419
+
$this->assertNotSame( $network_notoptions_cache_before, $network_notoptions_cache_after, 'Multisite notoptions cache should change.' );
420
+
$this->assertIsArray( $network_notoptions_cache_after, 'Multisite notoptions cache should be set.' );
421
+
$this->assertArrayHasKey( 'ticket_61730_notoption', $network_notoptions_cache_after, 'The option should be in the notoptions cache.' );
0 commit comments