Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnynews committed Jan 9, 2024
1 parent c1e9415 commit 7622585
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/phpunit/tests/theme/wpThemeGetBlockPatterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ public function test_should_clear_cache_after_switching_theme() {
$theme2 = wp_get_theme();
$this->assertTrue( $theme2->exists(), 'The block-theme-patterns test theme could not be found.' );

$this->assertFalse( $this->get_pattern_cache( $theme1 ), 'Cache should not be set for block theme after switch theme.' );
if ( ! is_multisite() ) {
$this->assertFalse( $this->get_pattern_cache( $theme1 ), 'Cache should not be set for block theme after switch theme.' );
}
$this->assertFalse( $this->get_pattern_cache( $theme2 ), 'Cache should not be set for block theme patterns before being requested.' );

$theme2->get_block_patterns( $theme2 );
Expand Down

0 comments on commit 7622585

Please sign in to comment.