Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix tests.
  • Loading branch information
spacedmonkey committed Nov 15, 2022
commit 18c0ca9b2f513157102f3c86b5536b192382baab
2 changes: 2 additions & 0 deletions tests/phpunit/tests/theme/wpGetGlobalStylesheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function set_up() {

// Clear caches.
wp_clean_themes_cache();
WP_Theme_JSON_Resolver::clean_cached_data();
unset( $GLOBALS['wp_themes'] );
}

Expand All @@ -49,6 +50,7 @@ public function tear_down() {
remove_filter( 'template_root', array( $this, 'filter_set_theme_root' ) );

wp_clean_themes_cache();
WP_Theme_JSON_Resolver::clean_cached_data();
unset( $GLOBALS['wp_themes'] );

parent::tear_down();
Expand Down