Changeset 52247 for trunk/tests/phpunit/tests/block-template.php
- Timestamp:
- 11/25/2021 10:57:19 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-template.php
r52246 r52247 38 38 $resolved_template_path = locate_block_template( get_stylesheet_directory() . '/page-home.php', $type, $templates ); 39 39 $this->assertEquals( self::$template_canvas_path, $resolved_template_path ); 40 $this->assertStringEqualsFile( get_stylesheet_directory() . '/ block-templates/page-home.html', $_wp_current_template_content );40 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/page-home.html', $_wp_current_template_content ); 41 41 } 42 42 … … 51 51 $resolved_template_path = locate_block_template( get_stylesheet_directory() . '/page.php', $type, $templates ); 52 52 $this->assertEquals( self::$template_canvas_path, $resolved_template_path ); 53 $this->assertStringEqualsFile( get_stylesheet_directory() . '/ block-templates/page.html', $_wp_current_template_content );53 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/page.html', $_wp_current_template_content ); 54 54 } 55 55 … … 62 62 $resolved_template_path = locate_block_template( get_stylesheet_directory() . '/index.php', $type, $templates ); 63 63 $this->assertEquals( self::$template_canvas_path, $resolved_template_path ); 64 $this->assertStringEqualsFile( get_stylesheet_directory() . '/ block-templates/index.html', $_wp_current_template_content );64 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/index.html', $_wp_current_template_content ); 65 65 } 66 66 … … 129 129 $resolved_template_path = locate_block_template( $parent_theme_page_template_path, $type, $templates ); 130 130 $this->assertEquals( self::$template_canvas_path, $resolved_template_path ); 131 $this->assertStringEqualsFile( get_stylesheet_directory() . '/ block-templates/page-1.html', $_wp_current_template_content );131 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/page-1.html', $_wp_current_template_content ); 132 132 } 133 133
Note: See TracChangeset
for help on using the changeset viewer.