Changeset 48937 for trunk/tests/phpunit/tests/post/wpInsertPost.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpInsertPost.php
r46586 r48937 78 78 ); 79 79 wp_trash_post( $trashed_about_page_id ); 80 $this->assert Equals( 'about__trashed', get_post( $trashed_about_page_id )->post_name );80 $this->assertSame( 'about__trashed', get_post( $trashed_about_page_id )->post_name ); 81 81 } 82 82 … … 94 94 ); 95 95 wp_trash_post( $trashed_about_page_id ); 96 $this->assert Equals( 'foo__trashed__foo__trashed', get_post( $trashed_about_page_id )->post_name );96 $this->assertSame( 'foo__trashed__foo__trashed', get_post( $trashed_about_page_id )->post_name ); 97 97 } 98 98 … … 111 111 112 112 wp_untrash_post( $about_page_id ); 113 $this->assert Equals( 'about', get_post( $about_page_id )->post_name );113 $this->assertSame( 'about', get_post( $about_page_id )->post_name ); 114 114 } 115 115 … … 134 134 ); 135 135 136 $this->assert Equals( 'about__trashed', get_post( $trashed_about_page_id )->post_name );137 $this->assert Equals( 'about', get_post( $about_page_id )->post_name );136 $this->assertSame( 'about__trashed', get_post( $trashed_about_page_id )->post_name ); 137 $this->assertSame( 'about', get_post( $about_page_id )->post_name ); 138 138 } 139 139 … … 161 161 wp_untrash_post( $about_page_id ); 162 162 163 $this->assert Equals( 'about', get_post( $another_about_page_id )->post_name );164 $this->assert Equals( 'about-2', get_post( $about_page_id )->post_name );163 $this->assertSame( 'about', get_post( $another_about_page_id )->post_name ); 164 $this->assertSame( 'about-2', get_post( $about_page_id )->post_name ); 165 165 } 166 166 … … 317 317 ); 318 318 319 $this->assert Equals( 'publish', get_post_status( $post_id ) );319 $this->assertSame( 'publish', get_post_status( $post_id ) ); 320 320 321 321 $post_id = $this->factory()->post->create( … … 326 326 ); 327 327 328 $this->assert Equals( 'future', get_post_status( $post_id ) );328 $this->assertSame( 'future', get_post_status( $post_id ) ); 329 329 } 330 330 }
Note: See TracChangeset
for help on using the changeset viewer.