Skip to content
Snippets Groups Projects
Commit 0271aa2d authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #12091 TIME 0:10 linkControllerTest

parent 97bf3aab
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ class LinkControllerTest extends TestCase ...@@ -89,7 +89,7 @@ class LinkControllerTest extends TestCase
$response = $linkController->linkResources($fullRequest, new \Slim\Http\Response(), ['resId' => self::$firstResourceId]); $response = $linkController->linkResources($fullRequest, new \Slim\Http\Response(), ['resId' => self::$firstResourceId]);
$this->assertSame(403, $response->getStatusCode()); $this->assertSame(403, $response->getStatusCode());
$responseBody = json_decode((string)$response->getBody(), true); $responseBody = json_decode((string)$response->getBody(), true);
$this->assertSame('Resource out of perimeter', $responseBody['errors']); $this->assertSame('Service forbidden', $responseBody['errors']);
$GLOBALS['userId'] = 'superadmin'; $GLOBALS['userId'] = 'superadmin';
$userInfo = \User\models\UserModel::getByLogin(['login' => $GLOBALS['userId'], 'select' => ['id']]); $userInfo = \User\models\UserModel::getByLogin(['login' => $GLOBALS['userId'], 'select' => ['id']]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment