Changeset 51079 for trunk/tests/phpunit/tests/block-template.php
- Timestamp:
- 06/07/2021 11:16:29 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/block-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-template.php
r51003 r51079 55 55 ); 56 56 $resolved_template_path = locate_block_template( $custom_page_template_path, $type, $templates ); 57 $this->assert Equals( $custom_page_template_path, $resolved_template_path );57 $this->assertSame( $custom_page_template_path, $resolved_template_path ); 58 58 } 59 59 … … 74 74 ); 75 75 $resolved_template_path = locate_block_template( $page_template_path, $type, $templates ); 76 $this->assert Equals( self::$template_canvas_path, $resolved_template_path );77 $this->assert Equals( self::$post->post_content, $_wp_current_template_content );76 $this->assertSame( self::$template_canvas_path, $resolved_template_path ); 77 $this->assertSame( self::$post->post_content, $_wp_current_template_content ); 78 78 } 79 79 … … 83 83 function test_template_remains_unchanged_if_templates_array_is_empty() { 84 84 $resolved_template_path = locate_block_template( '', 'search', array() ); 85 $this->assert Equals( '', $resolved_template_path );85 $this->assertSame( '', $resolved_template_path ); 86 86 } 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.