Skip to content
Snippets Groups Projects
Commit 73286f23 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

WIP migration vers unicaen/authentification

parent 023ff5e9
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -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;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment