Changeset 52266 for trunk/tests/phpunit/tests/block-template.php
- Timestamp:
- 11/29/2021 08:45:31 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-template.php
r52265 r52266 1 1 <?php 2 2 /** 3 * Block_Template_Testclass3 * Tests_Block_Template class 4 4 * 5 5 * @package WordPress … … 37 37 ); 38 38 $resolved_template_path = locate_block_template( get_stylesheet_directory() . '/page-home.php', $type, $templates ); 39 $this->assert Equals( self::$template_canvas_path, $resolved_template_path );39 $this->assertSame( self::$template_canvas_path, $resolved_template_path ); 40 40 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/page-home.html', $_wp_current_template_content ); 41 41 } … … 50 50 ); 51 51 $resolved_template_path = locate_block_template( get_stylesheet_directory() . '/page.php', $type, $templates ); 52 $this->assert Equals( self::$template_canvas_path, $resolved_template_path );52 $this->assertSame( self::$template_canvas_path, $resolved_template_path ); 53 53 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/page.html', $_wp_current_template_content ); 54 54 } … … 61 61 ); 62 62 $resolved_template_path = locate_block_template( get_stylesheet_directory() . '/index.php', $type, $templates ); 63 $this->assert Equals( self::$template_canvas_path, $resolved_template_path );63 $this->assertSame( self::$template_canvas_path, $resolved_template_path ); 64 64 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/index.html', $_wp_current_template_content ); 65 65 } … … 81 81 ); 82 82 $resolved_template_path = locate_block_template( $page_id_template_path, $type, $templates ); 83 $this->assert Equals( $page_id_template_path, $resolved_template_path );83 $this->assertSame( $page_id_template_path, $resolved_template_path ); 84 84 } 85 85 … … 111 111 ); 112 112 $resolved_template_path = locate_block_template( $page_slug_template_path, $type, $templates ); 113 $this->assert Equals( $page_slug_template_path, $resolved_template_path );113 $this->assertSame( $page_slug_template_path, $resolved_template_path ); 114 114 } 115 115 … … 128 128 ); 129 129 $resolved_template_path = locate_block_template( $parent_theme_page_template_path, $type, $templates ); 130 $this->assert Equals( self::$template_canvas_path, $resolved_template_path );130 $this->assertSame( self::$template_canvas_path, $resolved_template_path ); 131 131 $this->assertStringEqualsFile( get_stylesheet_directory() . '/templates/page-1.html', $_wp_current_template_content ); 132 132 }
Note: See TracChangeset
for help on using the changeset viewer.