Skip to content

Commit 2524386

Browse files
committed
Add assertion to ensure wp-block-separator style is registered
1 parent 34d7573 commit 2524386

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/phpunit/tests/template.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,9 @@ static function () {
16741674

16751675
// Ensure that separate core block assets get registered.
16761676
register_core_block_style_handles();
1677+
if ( wp_should_load_separate_core_block_assets() ) {
1678+
$this->assertTrue( wp_style_is( 'wp-block-separator', 'registered' ), 'Expected the wp-block-separator style to be registered.' );
1679+
}
16771680

16781681
$this->assertFalse( wp_is_block_theme(), 'Test is not relevant to block themes (only classic themes).' );
16791682

0 commit comments

Comments
 (0)