Changeset 56629 for trunk/tests/phpunit/tests/blocks/editor.php
- Timestamp:
- 09/20/2023 01:24:32 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/editor.php
r56619 r56629 447 447 ), 448 448 ); 449 // With no block theme, expect an empty array. 449 // With no block theme, expect null. 450 $this->assertNull( wp_get_post_content_block_attributes() ); 451 452 switch_theme( 'block-theme' ); 453 454 $this->assertSame( $attributes_with_layout, wp_get_post_content_block_attributes() ); 455 } 456 457 public function test_wp_get_post_content_block_attributes_no_layout() { 458 switch_theme( 'block-theme-post-content-default' ); 459 450 460 $this->assertSame( array(), wp_get_post_content_block_attributes() ); 451 452 switch_theme( 'block-theme' );453 454 $this->assertSame( $attributes_with_layout, wp_get_post_content_block_attributes() );455 461 } 456 462 … … 529 535 530 536 /** 537 * @ticket 59358 538 */ 539 public function test_get_block_editor_settings_without_post_content_block() { 540 541 $post_editor_context = new WP_Block_Editor_Context( array( 'post' => get_post() ) ); 542 543 $settings = get_block_editor_settings( array(), $post_editor_context ); 544 545 $this->assertArrayNotHasKey( 'postContentAttributes', $settings ); 546 547 } 548 549 /** 531 550 * @ticket 52920 532 551 * @expectedDeprecated block_editor_settings
Note: See TracChangeset
for help on using the changeset viewer.