diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php index b427972e1adfd..c17f307d4c79d 100644 --- a/tests/Core/Controller/LoginControllerTest.php +++ b/tests/Core/Controller/LoginControllerTest.php @@ -142,6 +142,9 @@ public function testLogoutWithoutToken() { ->method('getCookie') ->with('nc_token') ->willReturn(null); + $this->request + ->method('getServerProtocol') + ->willReturn('https'); $this->request ->expects($this->once()) ->method('isUserAgent') @@ -166,6 +169,9 @@ public function testLogoutNoClearSiteData() { ->method('getCookie') ->with('nc_token') ->willReturn(null); + $this->request + ->method('getServerProtocol') + ->willReturn('https'); $this->request ->expects($this->once()) ->method('isUserAgent') @@ -186,6 +192,9 @@ public function testLogoutWithToken() { ->method('getCookie') ->with('nc_token') ->willReturn('MyLoginToken'); + $this->request + ->method('getServerProtocol') + ->willReturn('https'); $this->request ->expects($this->once()) ->method('isUserAgent')