]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(tests): Fix remaining tests 42633/head
authorJoas Schilling <coding@schilljs.com>
Tue, 9 Jan 2024 14:58:02 +0000 (15:58 +0100)
committerJoas Schilling <coding@schilljs.com>
Tue, 9 Jan 2024 14:58:02 +0000 (15:58 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/Core/Controller/LoginControllerTest.php

index 88bff12e233da029b50d325029a3abc308e5a092..c17f307d4c79d20c33712ddcef64a40b5f60da7f 100644 (file)
@@ -148,7 +148,7 @@ class LoginControllerTest extends TestCase {
                $this->request
                        ->expects($this->once())
                        ->method('isUserAgent')
-                       ->willReturn(true);
+                       ->willReturn(false);
                $this->config
                        ->expects($this->never())
                        ->method('deleteUserValue');
@@ -169,6 +169,9 @@ class LoginControllerTest extends TestCase {
                        ->method('getCookie')
                        ->with('nc_token')
                        ->willReturn(null);
+               $this->request
+                       ->method('getServerProtocol')
+                       ->willReturn('https');
                $this->request
                        ->expects($this->once())
                        ->method('isUserAgent')
@@ -189,6 +192,9 @@ class LoginControllerTest extends TestCase {
                        ->method('getCookie')
                        ->with('nc_token')
                        ->willReturn('MyLoginToken');
+               $this->request
+                       ->method('getServerProtocol')
+                       ->willReturn('https');
                $this->request
                        ->expects($this->once())
                        ->method('isUserAgent')