mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
port to 4.1 api route me/collections
This commit is contained in:
@@ -127,6 +127,16 @@ abstract class ApiTestCase extends \PhraseanetWebTestCase
|
||||
$this->assertArrayHasKey('subdefs', $content['response']);
|
||||
}
|
||||
|
||||
public function testRouteMeCollections()
|
||||
{
|
||||
$this->setToken($this->userAccessToken);
|
||||
$route = '/api/v1/me/collections/';
|
||||
$this->evaluateMethodNotAllowedRoute($route, [ 'POST', 'PUT' ]);
|
||||
self::$DI['client']->request('GET', $route, $this->getParameters(), [], ['HTTP_Accept' => $this->getAcceptMimeType()]);
|
||||
$content = $this->unserialize(self::$DI['client']->getResponse()->getContent());
|
||||
$this->assertArrayHasKey('collections', $content['response']);
|
||||
}
|
||||
|
||||
protected function evaluateGoodUserItem($data, User $user)
|
||||
{
|
||||
foreach ([
|
||||
|
Reference in New Issue
Block a user