Skip to content

Commit 7817f8a

Browse files
committed
Add test to ensure that multi-line blocks get matched in PHP
1 parent 08bcffa commit 7817f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpunit/class-dynamic-blocks-render-test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function test_dynamic_block_rendering_with_content() {
8888
register_block_type( 'core/dummy', $settings );
8989
$post_content =
9090
'before' .
91-
'<!-- wp:core/dummy value="b1" -->this should be ignored<!-- /wp:core/dummy -->' .
91+
"<!-- wp:core/dummy value=\"b1\" -->this\nshould\n\nbe\nignored<!-- /wp:core/dummy -->" .
9292
'between' .
9393
'<!-- wp:core/dummy value="b2" -->this should also be ignored<!-- /wp:core/dummy -->' .
9494
'after';

0 commit comments

Comments
 (0)