Skip to content

Commit ffbf93d

Browse files
committed
Tests: Clear the theme JSON cache before each theme test using WP_Theme_UnitTestCase.
Prevent stylesheet tests from reading theme data cached by an earlier test class. Developed in: #16226 Props mayankmajeji, mukesh27. See #66755. git-svn-id: https://develop.svn.wordpress.org/trunk@65780 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e9e15c7 commit ffbf93d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/phpunit/tests/theme/base.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function set_up() {
4040

4141
// Clear caches.
4242
wp_clean_themes_cache();
43+
wp_clean_theme_json_cache();
4344
unset( $GLOBALS['wp_themes'] );
4445
}
4546

0 commit comments

Comments
 (0)