Skip to content

Commit b6f05e4

Browse files
committed
LINTO
1 parent 77965c2 commit b6f05e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/phpunit/tests/blocks/resolvePatternBlocks.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function set_up() {
7474
register_block_pattern(
7575
'core/existing-metadata',
7676
array(
77-
'title' => 'Existing Metadata Pattern',
78-
'content' => '<!-- wp:paragraph {"metadata":{"patternName":"core/existing-metadata-should-not-overwrite","description":"A existing metadata pattern.","categories":["cake"]}} -->Existing metadata content<!-- /wp:paragraph -->',
77+
'title' => 'Existing Metadata Pattern',
78+
'content' => '<!-- wp:paragraph {"metadata":{"patternName":"core/existing-metadata-should-not-overwrite","description":"A existing metadata pattern.","categories":["cake"]}} -->Existing metadata content<!-- /wp:paragraph -->',
7979
)
8080
);
8181
}
@@ -151,7 +151,7 @@ public function data_should_resolve_pattern_blocks_as_expected() {
151151
'<!-- wp:paragraph {"metadata":{"patternName":"core/single-root-with-forbidden-chars-in-attrs","name":"Single Root Pattern","description":"A single root pattern.","categories":["text","bad\'); DROP TABLE wp_posts;\u002d\u002d","","evil\u0000null byte","category with html tags"]}} -->Single root content<!-- /wp:paragraph -->',
152152
),
153153
// Metadata is merged with existing metadata and existing metadata is preserved.
154-
'existing metadata preserved' => array(
154+
'existing metadata preserved' => array(
155155
'<!-- wp:pattern {"slug":"core/existing-metadata"} /-->',
156156
'<!-- wp:paragraph {"metadata":{"patternName":"core/existing-metadata","name":"Existing Metadata Pattern","description":"A existing metadata pattern.","categories":["cake"]}} -->Existing metadata content<!-- /wp:paragraph -->',
157157
),

0 commit comments

Comments
 (0)