Changeset 55992 for trunk/tests/phpunit/tests/block-template-utils.php
- Timestamp:
- 06/23/2023 06:27:45 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-template-utils.php
r55500 r55992 102 102 $this->assertSame( 'Description of my template', $template->description ); 103 103 $this->assertSame( 'wp_template', $template->type ); 104 $this->assertSame( self::$template_post->post_modified, $template->modified ); 104 105 105 106 // Test template parts. … … 118 119 $this->assertSame( 'wp_template_part', $template_part->type ); 119 120 $this->assertSame( WP_TEMPLATE_PART_AREA_HEADER, $template_part->area ); 121 $this->assertSame( self::$template_part_post->post_modified, $template->modified ); 120 122 } 121 123 … … 137 139 $this->assertSame( 'Displays single posts on your website unless a custom template has been applied to that post or a dedicated template exists.', $template->description ); 138 140 $this->assertSame( 'wp_template', $template->type ); 141 $this->assertEmpty( $template->modified ); 139 142 140 143 // Test template parts. … … 156 159 $this->assertSame( 'wp_template_part', $template_part->type ); 157 160 $this->assertSame( WP_TEMPLATE_PART_AREA_HEADER, $template_part->area ); 161 $this->assertEmpty( $template_part->modified ); 158 162 } 159 163
Note: See TracChangeset
for help on using the changeset viewer.