diff --git a/tests/Controller/OAuthControllerTest.php b/tests/Controller/OAuthControllerTest.php index 20f4a54..1d8fdc7 100644 --- a/tests/Controller/OAuthControllerTest.php +++ b/tests/Controller/OAuthControllerTest.php @@ -22,4 +22,13 @@ class OAuthControllerTest extends WebTestCase self::assertResponseRedirects('/'); } + + public function testSsoCheckRedirectsToLogin(): void + { + $client = static::createClient(); + $client->request('GET', '/connection/sso/check'); + + // Without OAuth token, the authenticator redirects to login + self::assertResponseRedirects(); + } }