Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/phpunit/tests/theme/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function tear_down() {
remove_filter( 'template_root', array( $this, 'filter_set_theme_root' ) );

wp_clean_themes_cache();
wp_clean_theme_json_cache();
unset( $GLOBALS['wp_themes'] );

parent::tear_down();
Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/tests/theme/wpAddGlobalStylesForBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function test_third_party_blocks_inline_styles_get_rendered_when_per_bloc
* @ticket 61165
*/
public function test_blocks_inline_styles_get_rendered() {
$this->set_up_third_party_block();
wp_register_style( 'global-styles', false, array(), true, true );
wp_enqueue_style( 'global-styles' );
wp_add_global_styles_for_blocks();
Expand Down Expand Up @@ -174,6 +175,7 @@ public function test_third_party_blocks_inline_styles_for_elements_get_rendered_
* @ticket 61165
*/
public function test_third_party_blocks_inline_styles_for_elements_get_rendered() {
$this->set_up_third_party_block();
wp_register_style( 'global-styles', false, array(), true, true );
wp_enqueue_style( 'global-styles' );
wp_add_global_styles_for_blocks();
Expand Down