From 7e7668cd1bb3904b85b17455f6fa907b901c38bc Mon Sep 17 00:00:00 2001 From: Jean-Yves Gaulier Date: Thu, 29 Sep 2016 16:29:07 +0200 Subject: [PATCH] PHRAS-946_delete-record-api - fix tests --- tests/Alchemy/Tests/Phrasea/Controller/Api/ApiJsonTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiJsonTest.php b/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiJsonTest.php index fd03f65094..a98d318f46 100644 --- a/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiJsonTest.php +++ b/tests/Alchemy/Tests/Phrasea/Controller/Api/ApiJsonTest.php @@ -550,7 +550,7 @@ class ApiJsonTest extends ApiTestCase $client = $this->getClient(); $route = '/api/v1/records/' . $record_1->getDataboxId() . '/' . $record_1->getRecordId() . '/'; - $this->evaluateMethodNotAllowedRoute($route, ['POST', 'PUT', 'DELETE']); + $this->evaluateMethodNotAllowedRoute($route, ['POST', 'PUT']); $client->request('GET', $route, $this->getParameters(), [], ['HTTP_Accept' => $this->getAcceptMimeType()]); $content = $this->unserialize($client->getResponse()->getContent());