From ce1e4bc31ccbaeac7e793fc06004610818c98235 Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Thu, 19 Mar 2026 10:53:27 +0100 Subject: [PATCH] Add test for /connection/sso/check route to cover OAuthController 100% Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/Controller/OAuthControllerTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); + } }