Ticket #38417: 38417.diff
File 38417.diff, 697 bytes (added by , 9 years ago) |
---|
-
tests/phpunit/tests/rest-api/rest-attachments-controller.php
291 291 $request->set_param( 'context', 'edit' ); 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 298 298 public function test_get_items_private_status() {