Changeset 54402 for trunk/tests/phpunit/tests/user/countUserPosts.php
- Timestamp:
- 10/07/2022 01:02:07 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/countUserPosts.php
r51568 r54402 60 60 61 61 public function test_count_user_posts_post_type_should_default_to_post() { 62 $this->assert Equals( 4, count_user_posts( self::$user_id ) );62 $this->assertSame( '4', count_user_posts( self::$user_id ) ); 63 63 } 64 64 … … 67 67 */ 68 68 public function test_count_user_posts_post_type_post() { 69 $this->assert Equals( 4, count_user_posts( self::$user_id, 'post' ) );69 $this->assertSame( '4', count_user_posts( self::$user_id, 'post' ) ); 70 70 } 71 71 … … 74 74 */ 75 75 public function test_count_user_posts_post_type_cpt() { 76 $this->assert Equals( 3, count_user_posts( self::$user_id, 'wptests_pt' ) );76 $this->assertSame( '3', count_user_posts( self::$user_id, 'wptests_pt' ) ); 77 77 } 78 78 … … 81 81 */ 82 82 public function test_count_user_posts_with_multiple_post_types() { 83 $this->assert Equals( 7, count_user_posts( self::$user_id, array( 'wptests_pt', 'post' ) ) );83 $this->assertSame( '7', count_user_posts( self::$user_id, array( 'wptests_pt', 'post' ) ) ); 84 84 } 85 85 … … 88 88 */ 89 89 public function test_count_user_posts_should_ignore_non_existent_post_types() { 90 $this->assert Equals( 4, count_user_posts( self::$user_id, array( 'foo', 'post' ) ) );90 $this->assertSame( '4', count_user_posts( self::$user_id, array( 'foo', 'post' ) ) ); 91 91 } 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.