Changeset 38917
- Timestamp:
- 10/25/2016 07:33:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r38834 r38917 281 281 } 282 282 283 public function test_get_items_invalid_status_param_is_ discarded() {283 public function test_get_items_invalid_status_param_is_error_response() { 284 284 wp_set_current_user( $this->editor_id ); 285 285 $this->factory->attachment->create_object( $this->test_file, 0, array( … … 292 292 $response = $this->server->dispatch( $request ); 293 293 $data = $response->get_data(); 294 $this->assertCount( 1, $data );295 $this->assertEquals( ' inherit', $data[0]['status'] );294 $this->assertCount( 3, $data ); 295 $this->assertEquals( 'rest_invalid_param', $data['code'] ); 296 296 } 297 297
Note: See TracChangeset
for help on using the changeset viewer.