Changeset 50283 for trunk/tests/phpunit/includes/testcase-rest-api.php
- Timestamp:
- 02/10/2021 01:23:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-rest-api.php
r49606 r50283 9 9 10 10 $this->assertWPError( $response ); 11 $this->assert Equals( $code, $response->get_error_code() );11 $this->assertSame( $code, $response->get_error_code() ); 12 12 13 13 if ( null !== $status ) { 14 14 $data = $response->get_error_data(); 15 15 $this->assertArrayHasKey( 'status', $data ); 16 $this->assert Equals( $status, $data['status'] );16 $this->assertSame( $status, $data['status'] ); 17 17 } 18 18 }
Note: See TracChangeset
for help on using the changeset viewer.