diff --git a/tests/phpunit/tests/theme.php b/tests/phpunit/tests/theme.php index 2d98e062374fd..75bfbdd612de1 100644 --- a/tests/phpunit/tests/theme.php +++ b/tests/phpunit/tests/theme.php @@ -1184,6 +1184,8 @@ private function helper_requires_block_theme() { * Make sure filters added after the initial call are fired. * * @ticket 59847 + * + * @covers ::get_stylesheet_directory */ public function test_get_stylesheet_directory_filters_apply() { // Call the function prior to the filter being added. @@ -1206,6 +1208,8 @@ function () use ( $expected ) { * Make sure filters added after the initial call are fired. * * @ticket 59847 + * + * @covers ::get_template_directory */ public function test_get_template_directory_filters_apply() { // Call the function prior to the filter being added. @@ -1225,7 +1229,11 @@ function () use ( $expected ) { } /** + * Make sure get_stylesheet_directory uses the correct path when the root theme dir changes. + * * @ticket 59847 + * + * @covers ::get_stylesheet_directory */ public function test_get_stylesheet_directory_uses_registered_theme_dir() { $old_theme = wp_get_theme(); @@ -1256,7 +1264,11 @@ function () use ( $new_root ) { } /** + * Make sure get_template_directory uses the correct path when the root theme dir changes. + * * @ticket 59847 + * + * @covers ::get_template_directory */ public function test_get_template_directory_uses_registered_theme_dir() { $old_theme = wp_get_theme();