From d3906db492d32f7a62906a81b8cf34b77cce4741 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 16 Nov 2021 14:36:59 +0400 Subject: [PATCH] Fix PHPUnit test --- phpunit/class-wp-theme-json-resolver-test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpunit/class-wp-theme-json-resolver-test.php b/phpunit/class-wp-theme-json-resolver-test.php index 289a940ace3c28..eb131bb697fe5b 100644 --- a/phpunit/class-wp-theme-json-resolver-test.php +++ b/phpunit/class-wp-theme-json-resolver-test.php @@ -118,8 +118,8 @@ function test_translations_are_applied() { } function test_switching_themes_recalculates_data() { - // By default, the theme for unit tests is "default", - // which doesn't have theme.json support. + // The "default" theme doesn't have theme.json support. + switch_theme( 'default' ); $default = WP_Theme_JSON_Resolver_Gutenberg::theme_has_support(); // Switch to a theme that does have support.