Skip to content

Commit 1f8a2f8

Browse files
committed
Ensure wp-block-library-theme is created
1 parent a7660a9 commit 1f8a2f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/phpunit/tests/template.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,7 @@ static function () {
17151715
wp_should_load_separate_core_block_assets() ? 'css/dist/block-library/common.css' : 'css/dist/block-library/style.css',
17161716
wp_should_load_separate_core_block_assets()
17171717
);
1718+
$this->ensure_style_asset_file_created( 'wp-block-library-theme', 'css/dist/block-library/theme.css', true );
17181719
$dependency = wp_styles()->query( 'wp-block-library' );
17191720
$this->assertTrue( (bool) $dependency, 'Expected wp-block-library stylesheet to be registered.' );
17201721
$this->assertIsString( $dependency->src, 'Expected wp-block-library to have a string src. Dependency: ' . json_encode( $dependency ) );

0 commit comments

Comments
 (0)