aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Core/Controller/LoginControllerTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php
index b427972e1ad..c17f307d4c7 100644
--- a/tests/Core/Controller/LoginControllerTest.php
+++ b/tests/Core/Controller/LoginControllerTest.php
@@ -143,6 +143,9 @@ class LoginControllerTest extends TestCase {
->with('nc_token')
->willReturn(null);
$this->request
+ ->method('getServerProtocol')
+ ->willReturn('https');
+ $this->request
->expects($this->once())
->method('isUserAgent')
->willReturn(false);
@@ -167,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);
@@ -187,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);