- Timestamp:
- 07/07/2021 10:32:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php
r48939 r51367 39 39 $data = $response->get_data(); 40 40 $statuses = get_post_stati( array( 'public' => true ), 'objects' ); 41 $this->assert Same( 1, count( $data ));41 $this->assertCount( 1, $data ); 42 42 $this->assertSame( 'publish', $data['publish']['slug'] ); 43 43 } … … 51 51 52 52 $data = $response->get_data(); 53 $this->assert Same( 6, count( $data ));53 $this->assertCount( 6, $data ); 54 54 $this->assertSameSets( 55 55 array( … … 154 154 $data = $response->get_data(); 155 155 $properties = $data['schema']['properties']; 156 $this->assert Same( 8, count( $properties ));156 $this->assertCount( 8, $properties ); 157 157 $this->assertArrayHasKey( 'name', $properties ); 158 158 $this->assertArrayHasKey( 'private', $properties );
Note: See TracChangeset
for help on using the changeset viewer.