Changeset 56724 for trunk/tests/phpunit/tests/block-template-utils.php
- Timestamp:
- 09/26/2023 04:59:11 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-template-utils.php
r56719 r56724 362 362 /** 363 363 * @ticket 54448 364 * @ticket 59460 364 365 * 365 366 * @dataProvider data_remove_theme_attribute_in_block_template_content 367 * 368 * @expectedDeprecated _remove_theme_attribute_in_block_template_content 366 369 */ 367 370 public function test_remove_theme_attribute_in_block_template_content( $template_content, $expected ) { 368 371 $this->assertSame( $expected, _remove_theme_attribute_in_block_template_content( $template_content ) ); 372 } 373 374 /** 375 * @ticket 59460 376 * 377 * @covers ::_remove_theme_attribute_from_template_part_block 378 * @covers ::traverse_and_serialize_blocks 379 * 380 * @dataProvider data_remove_theme_attribute_in_block_template_content 381 * 382 * @param string $template_content The template markup. 383 * @param string $expected The expected markup after removing the theme attribute from Template Part blocks. 384 */ 385 public function test_remove_theme_attribute_from_template_part_block( $template_content, $expected ) { 386 $template_content_parsed_blocks = parse_blocks( $template_content ); 387 388 $this->assertSame( 389 $expected, 390 traverse_and_serialize_blocks( 391 $template_content_parsed_blocks, 392 '_remove_theme_attribute_from_template_part_block' 393 ) 394 ); 369 395 } 370 396
Note: See TracChangeset
for help on using the changeset viewer.