Changeset 51367 for trunk/tests/phpunit/tests/xmlrpc/wp/getTerms.php
- Timestamp:
- 07/07/2021 10:32:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getTerms.php
r51331 r51367 78 78 $this->assertNotIXRError( $results ); 79 79 80 $this->assert Same( $num_terms, count( $results ));80 $this->assertCount( $num_terms, $results ); 81 81 foreach ( $results as $term ) { 82 82 $this->assertSame( $tax_name, $term['taxonomy'] ); … … 87 87 $results2 = $this->myxmlrpcserver->wp_getTerms( array( 1, 'editor', 'editor', $tax_name, $filter ) ); 88 88 $this->assertNotIXRError( $results ); 89 $this->assert Same( 5, count( $results2 ));89 $this->assertCount( 5, $results2 ); 90 90 $this->assertSame( $results[1]['term_id'], $results2[1]['term_id'] ); // Check one of the terms. 91 91 … … 93 93 $results3 = $this->myxmlrpcserver->wp_getTerms( array( 1, 'editor', 'editor', $tax_name, $filter ) ); 94 94 $this->assertNotIXRError( $results3 ); 95 $this->assert Same( $num_terms - 10, count( $results3 ));95 $this->assertCount( $num_terms - 10, $results3 ); 96 96 $this->assertSame( $results[11]['term_id'], $results3[1]['term_id'] ); 97 97 … … 100 100 $results4 = $this->myxmlrpcserver->wp_getTerms( array( 1, 'editor', 'editor', $tax_name, $filter ) ); 101 101 $this->assertNotIXRError( $results4 ); 102 $this->assert Same( 0, count( $results4 ));102 $this->assertCount( 0, $results4 ); 103 103 104 104 unset( $GLOBALS['wp_taxonomies'][ $tax_name ] ); … … 120 120 $results = $this->myxmlrpcserver->wp_getTerms( array( 1, 'editor', 'editor', 'category', $filter ) ); 121 121 $this->assertNotIXRError( $results ); 122 $this->assertNot Equals( 0, count( $results ));122 $this->assertNotCount( 0, $results ); 123 123 124 124 foreach ( $results as $term ) { … … 141 141 $results = $this->myxmlrpcserver->wp_getTerms( array( 1, 'editor', 'editor', 'category', $filter ) ); 142 142 $this->assertNotIXRError( $results ); 143 $this->assert Same( 1, count( $results ));143 $this->assertCount( 1, $results ); 144 144 $this->assertSame( $name, $results[0]['name'] ); 145 145 $this->assertEquals( $name_id, $results[0]['term_id'] ); … … 149 149 $results2 = $this->myxmlrpcserver->wp_getTerms( array( 1, 'editor', 'editor', 'category', $filter ) ); 150 150 $this->assertNotIXRError( $results2 ); 151 $this->assert Same( 1, count( $results2 ));151 $this->assertCount( 1, $results2 ); 152 152 $this->assertSame( $name, $results2[0]['name'] ); 153 153 $this->assertEquals( $name_id, $results2[0]['term_id'] );
Note: See TracChangeset
for help on using the changeset viewer.