Changeset 51367 for trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php
- Timestamp:
- 07/07/2021 10:32:56 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php
r49108 r51367 72 72 $results = $this->myxmlrpcserver->wp_getPosts( array( 1, 'editor', 'editor', $filter ) ); 73 73 $this->assertNotIXRError( $results ); 74 $this->assert Same( $num_posts, count( $results ));74 $this->assertCount( $num_posts, $results ); 75 75 76 76 // Page through results. … … 84 84 } while ( count( $presults ) > 0 ); 85 85 // Verify that $post_ids matches $posts_found. 86 $this->assert Same( 0, count( array_diff( $post_ids, $posts_found )) );86 $this->assertCount( 0, array_diff( $post_ids, $posts_found ) ); 87 87 88 88 // Add comments to some of the posts. … … 118 118 $results3 = $this->myxmlrpcserver->wp_getPosts( array( 1, 'editor', 'editor', $filter3 ) ); 119 119 $this->assertNotIXRError( $results3 ); 120 $this->assert Same( 1, count( $results3 ));120 $this->assertCount( 1, $results3 ); 121 121 $this->assertEquals( $post->ID, $results3[0]['post_id'] ); 122 122 … … 160 160 $results = $this->myxmlrpcserver->wp_getPosts( array( 1, 'editor', 'editor', $filter ) ); 161 161 $this->assertNotIXRError( $results ); 162 $this->assert Same( 0, count( $results ));162 $this->assertCount( 0, $results ); 163 163 164 164 // Search for one of them. … … 166 166 $results = $this->myxmlrpcserver->wp_getPosts( array( 1, 'editor', 'editor', $filter ) ); 167 167 $this->assertNotIXRError( $results ); 168 $this->assert Same( 1, count( $results ));168 $this->assertCount( 1, $results ); 169 169 } 170 170
Note: See TracChangeset
for help on using the changeset viewer.