Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WPCS
  • Loading branch information
ockham committed Aug 18, 2025
commit c011d254900b14631d2de8d02ca7bf3e636dbfc1
14 changes: 8 additions & 6 deletions tests/phpunit/tests/block-bindings/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,19 @@ public function data_update_block_with_value_from_source() {
<!-- wp:paragraph -->
<p>This should not appear</p>
<!-- /wp:paragraph -->
HTML,
'<p>test source value</p>'
HTML
,
'<p>test source value</p>',
),
'button block' => array(
'button block' => array(
'text',
<<<HTML
<!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">This should not appear</a></div>
<!-- /wp:button -->
HTML,
'<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">test source value</a></div>'
HTML
,
'<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">test source value</a></div>',
),
);
}
Expand Down Expand Up @@ -113,7 +115,7 @@ public function test_update_block_with_value_from_source( $bound_attribute, $blo
$bound_attribute => array(
'source' => self::SOURCE_NAME,
),
)
),
);

$block = new WP_Block( $parsed_blocks[0] );
Expand Down