diff options
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r-- | tests/Core/Controller/LoginControllerTest.php | 5 |
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'); |