Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 19, 2025
1 parent 970eef5 commit 0ba659c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,13 @@ public function test_apply_block_hooks_to_content_from_post_object_respects_igno
/**
* @ticket 62716
*/
public function test_apply_block_hooks_to_content_from_post_object_preserves_non_block_content() {
$actual = apply_block_hooks_to_content_from_post_object(
public function test_apply_block_hooks_to_content_from_post_object_inserts_hooked_block_if_content_contains_no_blocks() {
$expected = '<!-- wp:tests/hooked-block-first-child /-->' . self::$post_with_non_block_content->post_content;
$actual = apply_block_hooks_to_content_from_post_object(
self::$post_with_non_block_content->post_content,
self::$post_with_non_block_content,
'insert_hooked_blocks'
);
$this->assertSame( self::$post_with_non_block_content->post_content, $actual );
$this->assertSame( $expected, $actual );
}
}

0 comments on commit 0ba659c

Please sign in to comment.