Changeset 56644 for trunk/tests/phpunit/tests/blocks/serialize.php
- Timestamp:
- 09/21/2023 08:32:52 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/serialize.php
r56620 r56644 59 59 /** 60 60 * @ticket 59327 61 * @ticket 59412 61 62 * 62 63 * @covers ::traverse_and_serialize_blocks … … 74 75 } 75 76 76 public static function add_attribute_to_inner_block( $block ) {77 public static function add_attribute_to_inner_block( &$block ) { 77 78 if ( 'core/inner' === $block['blockName'] ) { 78 79 $block['attrs']['myattr'] = 'myvalue'; 79 80 } 80 return $block;81 81 } 82 82 83 83 /** 84 84 * @ticket 59327 85 * @ticket 59412 85 86 * 86 87 * @covers ::traverse_and_serialize_blocks … … 93 94 $blocks = parse_blocks( $original ); 94 95 95 $actual = traverse_and_serialize_blocks( 96 $blocks, 97 function ( $block ) { 98 return $block; 99 } 100 ); 96 $actual = traverse_and_serialize_blocks( $blocks ); 101 97 102 98 $this->assertSame( $original, $actual );
Note: See TracChangeset
for help on using the changeset viewer.