diff --git a/composer.json b/composer.json index 628ba3acfa209b75e7a16346ffd12a9793ae5e55..23f87013d7c61bdd0d673b5fa263a793d1410cfc 100755 --- a/composer.json +++ b/composer.json @@ -13,7 +13,9 @@ "phpunit/phpunit": "^5.6", "phpspec/prophecy": "^1.6", "doctrine/orm": "^2.6", - "laminas/laminas-dependency-plugin": "^2.1" + "laminas/laminas-dependency-plugin": "^2.1", + "unicaen/authentification": "^5.0", + "unicaen/privilege": "^5.0" }, "autoload": { "psr-0": { diff --git a/src/UnicaenTest/Controller/AbstractControllerTestCase.php b/src/UnicaenTest/Controller/AbstractControllerTestCase.php index 30d4198a6416a428a39594cd8910a04682630c4a..3690365301420d572e254b4698f4654914cf7bc5 100644 --- a/src/UnicaenTest/Controller/AbstractControllerTestCase.php +++ b/src/UnicaenTest/Controller/AbstractControllerTestCase.php @@ -35,13 +35,13 @@ abstract class AbstractControllerTestCase extends AbstractHttpControllerTestCase /** * @param string $authorizeServiceClass - * @return ObjectProphecy|UnicaenAuth\Service\AuthorizeService + * @return ObjectProphecy|\UnicaenPrivilege\Service\AuthorizeService */ protected function mockAuthorizeService($authorizeServiceClass) { $prophet = new Prophet(); - /** @var ObjectProphecy|UnicaenAuth\Service\AuthorizeService $prophecy */ + /** @var ObjectProphecy|\UnicaenPrivilege\Service\AuthorizeService $prophecy */ $prophecy = $prophet->prophesize(); $prophecy->willExtend($authorizeServiceClass); @@ -59,13 +59,13 @@ abstract class AbstractControllerTestCase extends AbstractHttpControllerTestCase /** * @param string $userContextServiceClass - * @return ObjectProphecy|UnicaenAuth\Service\UserContext + * @return ObjectProphecy|\UnicaenAuthentification\Service\UserContext */ protected function mockUserContextService($userContextServiceClass) { $prophet = new Prophet(); - /** @var ObjectProphecy|UnicaenAuth\Service\UserContext $prophecy */ + /** @var ObjectProphecy|\UnicaenAuthentification\Service\UserContext $prophecy */ $prophecy = $prophet->prophesize(); $prophecy->willExtend($userContextServiceClass); @@ -77,7 +77,7 @@ abstract class AbstractControllerTestCase extends AbstractHttpControllerTestCase /* @var $services ServiceManager */ $services = $this->getApplication()->getServiceManager(); $services->setAllowOverride(true); - $services->setFactory('UnicaenAuth\Service\UserContext', function() use ($service) { + $services->setFactory(\UnicaenAuthentification\Service\UserContext::class, function() use ($service) { return $service; });