Signed-off-by: Joas Schilling <coding@schilljs.com>
$this->request
->expects($this->once())
->method('isUserAgent')
- ->willReturn(true);
+ ->willReturn(false);
$this->config
->expects($this->never())
->method('deleteUserValue');
->method('getCookie')
->with('nc_token')
->willReturn(null);
+ $this->request
+ ->method('getServerProtocol')
+ ->willReturn('https');
$this->request
->expects($this->once())
->method('isUserAgent')
->method('getCookie')
->with('nc_token')
->willReturn('MyLoginToken');
+ $this->request
+ ->method('getServerProtocol')
+ ->willReturn('https');
$this->request
->expects($this->once())
->method('isUserAgent')