Skip to content

Commit

Permalink
Fix test description
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jun 3, 2024
1 parent c91460a commit 4d5e601
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/phpunit/tests/block-bindings/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,18 @@ public function test_source_value_with_unsafe_html_is_sanitized() {
}

/**
* Tests if the block content is sanitized when unsafe HTML is passed.
* Tests if the `__default` attribute is replaced with real attribues for
* pattern overrides.
*
* @ticket 61333
*
* @covers ::register_block_bindings_source
* @covers WP_Block::process_block_bindings
*/
public function test_default_binding_for_pattern_overrides() {
$expected_content = 'This is the content value';

$block_content = <<<HTML
<!-- wp:paragraph {"metadata":{"bindings":{"__default":{"source":"core/pattern-overrides"}}, "name":"Test"}} -->
<!-- wp:paragraph {"metadata":{"bindings":{"__default":{"source":"core/pattern-overrides"}},"name":"Test"}} -->
<p>This should not appear</p>
<!-- /wp:paragraph -->
HTML;
Expand Down

0 comments on commit 4d5e601

Please sign in to comment.