aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r--tests/Core/Controller/LoginControllerTest.php5
1 files changed, 4 insertions, 1 deletions
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
@@ -143,9 +143,12 @@ class LoginControllerTest extends TestCase {
->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');