mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-946_delete-record-api
- fix tests
This commit is contained in:
@@ -550,7 +550,7 @@ class ApiJsonTest extends ApiTestCase
|
|||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
|
|
||||||
$route = '/api/v1/records/' . $record_1->getDataboxId() . '/' . $record_1->getRecordId() . '/';
|
$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()]);
|
$client->request('GET', $route, $this->getParameters(), [], ['HTTP_Accept' => $this->getAcceptMimeType()]);
|
||||||
$content = $this->unserialize($client->getResponse()->getContent());
|
$content = $this->unserialize($client->getResponse()->getContent());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user