Skip to content
Snippets Groups Projects
Commit ac9496e9 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix namespace

parent 4cd719c0
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ class LoginTest extends ClearStateTestCase ...@@ -79,7 +79,7 @@ class LoginTest extends ClearStateTestCase
$session = Session::getSessionFromRequest(); $session = Session::getSessionFromRequest();
$factory = new AuthenticationFactory($this->config, $session); $factory = new AuthenticationFactory($this->config, $session);
$c = new Controller/Login($this->config, $session, $factory); $c = new Controller\Login($this->config, $session, $factory);
/** @var \SimpleSAML\HTTP\RunnableResponse $response */ /** @var \SimpleSAML\HTTP\RunnableResponse $response */
$response = $c->login($request); $response = $c->login($request);
...@@ -118,7 +118,7 @@ class LoginTest extends ClearStateTestCase ...@@ -118,7 +118,7 @@ class LoginTest extends ClearStateTestCase
$session = Session::getSessionFromRequest(); $session = Session::getSessionFromRequest();
$factory = new AuthenticationFactory($this->config, $session); $factory = new AuthenticationFactory($this->config, $session);
$c = new Controller/Login($this->config, $session, $factory); $c = new Controller\Login($this->config, $session, $factory);
/** @var \SimpleSAML\XHTML\Template $response */ /** @var \SimpleSAML\XHTML\Template $response */
$response = $c->login($request); $response = $c->login($request);
...@@ -141,7 +141,7 @@ class LoginTest extends ClearStateTestCase ...@@ -141,7 +141,7 @@ class LoginTest extends ClearStateTestCase
$request = new Request(); $request = new Request();
$session = Session::getSessionFromRequest(); $session = Session::getSessionFromRequest();
$factory = new AuthenticationFactory($this->config, $session); $factory = new AuthenticationFactory($this->config, $session);
$c = new Controller/Login($this->config, $session, $factory); $c = new Controller\Login($this->config, $session, $factory);
$this->expectException(Exception::class); $this->expectException(Exception::class);
$c->login($request, 'invalid-auth-source'); $c->login($request, 'invalid-auth-source');
} }
...@@ -176,7 +176,7 @@ class LoginTest extends ClearStateTestCase ...@@ -176,7 +176,7 @@ class LoginTest extends ClearStateTestCase
$factory = new AuthenticationFactory($this->config, $session); $factory = new AuthenticationFactory($this->config, $session);
$request = new Request(); $request = new Request();
$c = new Controller/Login($this->config, $session, $factory); $c = new Controller\Login($this->config, $session, $factory);
/** @var \Symfony\Component\HttpFoundation\RedirectResponse $response */ /** @var \Symfony\Component\HttpFoundation\RedirectResponse $response */
$response = $c->login($request); $response = $c->login($request);
$this->assertInstanceOf(RedirectResponse::class, $response); $this->assertInstanceOf(RedirectResponse::class, $response);
...@@ -197,7 +197,7 @@ class LoginTest extends ClearStateTestCase ...@@ -197,7 +197,7 @@ class LoginTest extends ClearStateTestCase
Configuration::setPreLoadedConfig($asConfig, 'authsources.php'); Configuration::setPreLoadedConfig($asConfig, 'authsources.php');
$session = Session::getSessionFromRequest(); $session = Session::getSessionFromRequest();
$factory = new AuthenticationFactory($this->config, $session); $factory = new AuthenticationFactory($this->config, $session);
$c = new Controller/Login($this->config, $session, $factory); $c = new Controller\Login($this->config, $session, $factory);
$response = $c->logout('example-userpass'); $response = $c->logout('example-userpass');
$this->assertInstanceOf(RunnableResponse::class, $response); $this->assertInstanceOf(RunnableResponse::class, $response);
list($object, $method) = $response->getCallable(); list($object, $method) = $response->getCallable();
...@@ -218,7 +218,7 @@ class LoginTest extends ClearStateTestCase ...@@ -218,7 +218,7 @@ class LoginTest extends ClearStateTestCase
Configuration::setPreLoadedConfig($asConfig, 'authsources.php'); Configuration::setPreLoadedConfig($asConfig, 'authsources.php');
$session = Session::getSessionFromRequest(); $session = Session::getSessionFromRequest();
$factory = new AuthenticationFactory($this->config, $session); $factory = new AuthenticationFactory($this->config, $session);
$c = new Controller/Login($this->config, $session, $factory); $c = new Controller\Login($this->config, $session, $factory);
/** @var RedirectResponse $response */ /** @var RedirectResponse $response */
$response = $c->account('example-userpass'); $response = $c->account('example-userpass');
$this->assertInstanceOf(RedirectResponse::class, $response); $this->assertInstanceOf(RedirectResponse::class, $response);
...@@ -251,7 +251,7 @@ class LoginTest extends ClearStateTestCase ...@@ -251,7 +251,7 @@ class LoginTest extends ClearStateTestCase
] ]
]); ]);
$factory = new AuthenticationFactory($this->config, $session); $factory = new AuthenticationFactory($this->config, $session);
$c = new Controller/Login($this->config, $session, $factory); $c = new Controller\Login($this->config, $session, $factory);
/** @var \SimpleSAML\XHTML\Template $response */ /** @var \SimpleSAML\XHTML\Template $response */
$response = $c->account('example-userpass'); $response = $c->account('example-userpass');
$this->assertInstanceOf(Template::class, $response); $this->assertInstanceOf(Template::class, $response);
......
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