public function test_post_link_category_creates_link_category()
 {
     $this->mySetup(__DIR__ . "/basic_link_category_table.xml");
     $new_data = ["name" => "derp", "description" => "pred"];
     $controller = new LinkCategoryController([], Response::REQUEST_METHOD_POST, $new_data);
     $response = $controller->getResponse();
     self::assertIsValidResponse($response, Response::STATUS_CODE_CREATED);
     self::assertIsCorrectResponseData($response->getBody(), $new_data);
 }
 public function test_delete_links_category_return_document_without_links()
 {
     $this->mySetup(__DIR__ . "/basic_document_table.xml");
     // Delete
     $link_category_controller = new LinkCategoryController([1], Response::REQUEST_METHOD_DELETE, array());
     $document_field_response = $link_category_controller->getResponse();
     self::assertIsValidDeleteResponse($document_field_response);
     // Check document
     $document_controller = new DocumentController([1], Response::REQUEST_METHOD_GET, array());
     $document_response = $document_controller->getResponse();
     self::assertIsValidResponse($document_response);
     $fields = json_decode($document_response->getBody(), true)['links'];
     self::assertEquals([], $fields);
 }