Skip to content

Commit a7660a9

Browse files
committed
Add assertion to ensure wp-block-library was printed
1 parent 5d1ba9f commit a7660a9

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
@@ -1744,6 +1744,7 @@ static function () {
17441744

17451745
// Simulate wp_head.
17461746
$head_output = get_echo( 'wp_head' );
1747+
$this->assertContains( 'wp-block-library', wp_styles()->done, 'Expected wp-block-library to have been added to wp_styles()->done.' );
17471748

17481749
$this->assertStringContainsString( 'early', $head_output, 'Expected the early-enqueued stylesheet to be present.' );
17491750

0 commit comments

Comments
 (0)