- Timestamp:
- 02/02/2021 05:26:06 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r50124 r50150 456 456 $request->set_param( 'context', 'edit' ); 457 457 $response = rest_get_server()->dispatch( $request ); 458 $data = $response->get_data(); 459 $this->assertCount( 3, $data ); 460 $this->assertSame( 'rest_invalid_param', $data['code'] ); 458 $this->assertErrorResponse( 'rest_invalid_param', $response ); 461 459 } 462 460
Note: See TracChangeset
for help on using the changeset viewer.