aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-01-09 15:58:02 +0100
committerJoas Schilling <coding@schilljs.com>2024-01-09 15:58:02 +0100
commit2ee5c7a8f96f3a51c470409126bc6484f2dad38a (patch)
tree1974d132a5bb59eb25b588a3269e360057cbaa35
parentdb1131315218cb5adeede473a9316b42cdc869a4 (diff)
downloadnextcloud-server-2ee5c7a8f96f3a51c470409126bc6484f2dad38a.tar.gz
nextcloud-server-2ee5c7a8f96f3a51c470409126bc6484f2dad38a.zip
fix(tests): Fix remaining tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--tests/Core/Controller/LoginControllerTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php
index 88bff12e233..c17f307d4c7 100644
--- a/tests/Core/Controller/LoginControllerTest.php
+++ b/tests/Core/Controller/LoginControllerTest.php
@@ -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');
@@ -170,6 +170,9 @@ class LoginControllerTest extends TestCase {
->with('nc_token')
->willReturn(null);
$this->request
+ ->method('getServerProtocol')
+ ->willReturn('https');
+ $this->request
->expects($this->once())
->method('isUserAgent')
->willReturn(true);
@@ -190,6 +193,9 @@ class LoginControllerTest extends TestCase {
->with('nc_token')
->willReturn('MyLoginToken');
$this->request
+ ->method('getServerProtocol')
+ ->willReturn('https');
+ $this->request
->expects($this->once())
->method('isUserAgent')
->willReturn(false);