Skip to content

Commit 16b14dd

Browse files
committed
Add $message to new tests.
1 parent 586a490 commit 16b14dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/blocks/register.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,8 @@ public function test_block_registers_with_metadata_fixture() {
10391039
'style' => 'file:./block.css',
10401040
'viewStyle' => 'file:./block-view.css',
10411041
);
1042-
$this->assertSame( 'tests-notice-style', register_block_style_handle( $metadata, 'style' ) );
1043-
$this->assertSame( 'tests-notice-view-style', register_block_style_handle( $metadata, 'viewStyle' ) );
1042+
$this->assertSame( 'tests-notice-style', register_block_style_handle( $metadata, 'style' ), 'Style handle is expected to be tests-notice-style' );
1043+
$this->assertSame( 'tests-notice-view-style', register_block_style_handle( $metadata, 'viewStyle' ), 'View style handle is expected to be tests-notice-view-style' );
10441044
$this->assertTrue( wp_style_is( 'tests-notice-style', 'registered' ), 'Expected "tests-notice-style" style to be registered.' );
10451045
$this->assertTrue( wp_style_is( 'tests-notice-view-style', 'registered' ), 'Expected "tests-notice-view-style" style to be registered.' );
10461046

0 commit comments

Comments
 (0)