From db1131315218cb5adeede473a9316b42cdc869a4 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 8 Jan 2024 17:30:29 +0100 Subject: [PATCH] Fix tests after slow logout fix Signed-off-by: Louis Chemineau --- tests/Core/Controller/LoginControllerTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php index b427972e1ad..88bff12e233 100644 --- a/tests/Core/Controller/LoginControllerTest.php +++ b/tests/Core/Controller/LoginControllerTest.php @@ -142,10 +142,13 @@ class LoginControllerTest extends TestCase { ->method('getCookie') ->with('nc_token') ->willReturn(null); + $this->request + ->method('getServerProtocol') + ->willReturn('https'); $this->request ->expects($this->once()) ->method('isUserAgent') - ->willReturn(false); + ->willReturn(true); $this->config ->expects($this->never()) ->method('deleteUserValue'); -- 2.39.5