]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests after slow logout fix
authorLouis Chemineau <louis@chmn.me>
Mon, 8 Jan 2024 16:30:29 +0000 (17:30 +0100)
committerLouis Chemineau <louis@chmn.me>
Mon, 8 Jan 2024 18:09:48 +0000 (19:09 +0100)
Signed-off-by: Louis Chemineau <louis@chmn.me>
tests/Core/Controller/LoginControllerTest.php

index b427972e1adfde35385f1ca8c7bfd922f97f07e0..88bff12e233da029b50d325029a3abc308e5a092 100644 (file)
@@ -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');