mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Tests: Fix incorrect check for block themes in legacy PHPUnit test for themes.
Props mukesh27. Fixes #59881. git-svn-id: https://develop.svn.wordpress.org/trunk@57104 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
155017ae7b
commit
9df9e28f65
@ -317,7 +317,7 @@ class Tests_Theme extends WP_UnitTestCase {
|
||||
$this->assertSame( $root_uri . '/' . get_template(), get_template_directory_uri() );
|
||||
|
||||
// Skip block themes for get_query_template() tests since this test is focused on classic templates.
|
||||
if ( wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) {
|
||||
if ( wp_is_block_theme() || wp_theme_has_theme_json() ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user