- Timestamp:
- 07/07/2021 10:32:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r51331 r51367 489 489 $response = rest_get_server()->dispatch( $request ); 490 490 $data = $response->get_data(); 491 $this->assert Same( 2, count( $data ));491 $this->assertCount( 2, $data ); 492 492 $this->assertSame( $id1, $data[0]['id'] ); 493 493 … … 496 496 $response = rest_get_server()->dispatch( $request ); 497 497 $data = $response->get_data(); 498 $this->assert Same( 2, count( $data ));498 $this->assertCount( 2, $data ); 499 499 $this->assertSame( $id2, $data[0]['id'] ); 500 500 … … 3157 3157 $data = $response->get_data(); 3158 3158 $properties = $data['schema']['properties']; 3159 $this->assert Same( 17, count( $properties ));3159 $this->assertCount( 17, $properties ); 3160 3160 $this->assertArrayHasKey( 'id', $properties ); 3161 3161 $this->assertArrayHasKey( 'author', $properties );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)