public function test_post_status_creates_status() { $this->mySetup(__DIR__ . "/basic_status_table.xml"); $new_data = ["name" => "derp", "description" => "pred"]; $controller = new StatusController([], Response::REQUEST_METHOD_POST, $new_data); $response = $controller->getResponse(); self::assertIsValidResponse($response, Response::STATUS_CODE_CREATED); self::assertIsCorrectResponseData($response->getBody(), $new_data); }