- Timestamp:
- 09/29/2023 03:22:12 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestMenusController.php
r55457 r56746 339 339 $data = $response->get_data(); 340 340 $properties = $data['schema']['properties']; 341 $this->assert Same( 7, count( $properties ));341 $this->assertCount( 7, $properties ); 342 342 $this->assertArrayHasKey( 'id', $properties ); 343 343 $this->assertArrayHasKey( 'description', $properties ); … … 574 574 ); 575 575 $tags = get_terms( self::TAXONOMY, $args ); 576 $this->assert Same( count( $tags ), count( $data ));576 $this->assertCount( count( $tags ), $data ); 577 577 $this->assertSame( $tags[0]->term_id, $data[0]['id'] ); 578 578 $this->assertSame( $tags[0]->name, $data[0]['name'] );
Note: See TracChangeset
for help on using the changeset viewer.