Skip to content

Commit aaea68d

Browse files
committed
Add assertion, change anchor block
1 parent 6b67a6e commit aaea68d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/phpunit/tests/blocks/updateIgnoredHookedBlocksPostMeta.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function test_update_ignored_hooked_blocks_postmeta_dont_modify_if_incomp
161161
'tests/my-block',
162162
array(
163163
'block_hooks' => array(
164-
'core/navigation-link' => 'after',
164+
'core/navigation' => 'last_child',
165165
),
166166
)
167167
);
@@ -179,6 +179,10 @@ public function test_update_ignored_hooked_blocks_postmeta_dont_modify_if_incomp
179179
$post->post_content,
180180
'Post content did not match the original markup.'
181181
);
182+
$this->assertNull(
183+
json_decode( get_post_meta( self::$template_part_post->ID, '_wp_ignored_hooked_blocks', true ), true ),
184+
'Block should not have been added to ignored hooked blocks post meta.'
185+
);
182186
}
183187

184188
/**

0 commit comments

Comments
 (0)