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
Try changing label used in test
  • Loading branch information
talldan committed Jun 3, 2024
commit 5f41050e32ad95a490efcf7f37e041b32c01f4a9
3 changes: 1 addition & 2 deletions tests/phpunit/tests/block-bindings/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,13 @@ public function test_source_value_with_unsafe_html_is_sanitized() {
*/
public function test_default_binding_for_pattern_overrides() {
$get_value_callback = function ( $source_args, $block_instance, $attribute_name ) {
$value = $source_args['key'];
return "The attribute name is '$attribute_name'";
};

register_block_bindings_source(
'core/pattern-overrides',
array(
'label' => 'Pattern overrides',
'label' => self::SOURCE_LABEL,
'get_value_callback' => $get_value_callback,
)
);
Expand Down