From: Louis Chemineau Date: Mon, 8 Jan 2024 16:30:29 +0000 (+0100) Subject: Fix tests after slow logout fix X-Git-Tag: v29.0.0beta1~539^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db1131315218cb5adeede473a9316b42cdc869a4;p=nextcloud-server.git Fix tests after slow logout fix Signed-off-by: Louis Chemineau --- 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');