mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge pull request #1968 from jygaulier/PHRAS-946_delete-record-api
PHRAS-946_delete-record-api
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -561,7 +561,7 @@ class ApiJsonTest extends ApiTestCase
|
||||
|
||||
$route = '/api/v1/records/1234567890/1/';
|
||||
$this->evaluateNotFoundRoute($route, ['GET']);
|
||||
$this->evaluateMethodNotAllowedRoute($route, ['POST', 'PUT', 'DELETE']);
|
||||
$this->evaluateMethodNotAllowedRoute($route, ['POST', 'PUT']);
|
||||
$route = '/api/v1/records/kjslkz84spm/sfsd5qfsd5/';
|
||||
$this->evaluateBadRequestRoute($route, ['GET']);
|
||||
$this->evaluateMethodNotAllowedRoute($route, ['POST', 'PUT', 'DELETE']);
|
||||
|
Reference in New Issue
Block a user