Changeset 56352 for trunk/tests/phpunit/includes/testcase-rest-api.php
- Timestamp:
- 08/03/2023 12:08:30 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-rest-api.php
r50283 r56352 4 4 protected function assertErrorResponse( $code, $response, $status = null ) { 5 5 6 if ( is_a( $response, 'WP_REST_Response' )) {6 if ( $response instanceof WP_REST_Response ) { 7 7 $response = $response->as_error(); 8 8 }
Note: See TracChangeset
for help on using the changeset viewer.