Changeset 48937 for trunk/tests/phpunit/tests/post/getPageUri.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPageUri.php
r47122 r48937 17 17 18 18 // Dummy assertion. If this test fails, it will actually error out on an E_WARNING. 19 $this->assert Equals( 'get-page-uri-post-name', get_page_uri( $post_array ) );19 $this->assertSame( 'get-page-uri-post-name', get_page_uri( $post_array ) ); 20 20 } 21 21 … … 42 42 43 43 // Check the parent for good measure. 44 $this->assert Equals( 'parent', get_page_uri( $parent_id ) );44 $this->assertSame( 'parent', get_page_uri( $parent_id ) ); 45 45 46 46 // Try the child normally. 47 $this->assert Equals( 'parent/child', get_page_uri( $child_id ) );47 $this->assertSame( 'parent/child', get_page_uri( $child_id ) ); 48 48 49 49 // Now delete the parent from the database and check. 50 50 wp_delete_post( $parent_id, true ); 51 $this->assert Equals( 'child', get_page_uri( $child_id ) );51 $this->assertSame( 'child', get_page_uri( $child_id ) ); 52 52 } 53 53 … … 72 72 ); 73 73 74 $this->assert Equals( 'child', get_page_uri( $child_id ) );74 $this->assertSame( 'child', get_page_uri( $child_id ) ); 75 75 } 76 76 … … 87 87 $post = get_post( $post_id ); 88 88 $this->go_to( get_permalink( $post_id ) ); 89 $this->assert Equals( 'blood-orange-announces-summer-tour-dates', get_page_uri() );89 $this->assertSame( 'blood-orange-announces-summer-tour-dates', get_page_uri() ); 90 90 } 91 91 }
Note: See TracChangeset
for help on using the changeset viewer.