Make WordPress Core

Ticket #38417: 38417.diff

File 38417.diff, 697 bytes (added by jeremyfelt, 8 years ago)
  • tests/phpunit/tests/rest-api/rest-attachments-controller.php

     
    291291                $request->set_param( 'context', 'edit' );
    292292                $response = $this->server->dispatch( $request );
    293293                $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'] );
    296296        }
    297297
    298298        public function test_get_items_private_status() {