Browse Source

fix(tests): Fix remaining tests

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v29.0.0beta1
Joas Schilling 5 months ago
parent
commit
2ee5c7a8f9
No account linked to committer's email address
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      tests/Core/Controller/LoginControllerTest.php

+ 7
- 1
tests/Core/Controller/LoginControllerTest.php View File

$this->request $this->request
->expects($this->once()) ->expects($this->once())
->method('isUserAgent') ->method('isUserAgent')
->willReturn(true);
->willReturn(false);
$this->config $this->config
->expects($this->never()) ->expects($this->never())
->method('deleteUserValue'); ->method('deleteUserValue');
->method('getCookie') ->method('getCookie')
->with('nc_token') ->with('nc_token')
->willReturn(null); ->willReturn(null);
$this->request
->method('getServerProtocol')
->willReturn('https');
$this->request $this->request
->expects($this->once()) ->expects($this->once())
->method('isUserAgent') ->method('isUserAgent')
->method('getCookie') ->method('getCookie')
->with('nc_token') ->with('nc_token')
->willReturn('MyLoginToken'); ->willReturn('MyLoginToken');
$this->request
->method('getServerProtocol')
->willReturn('https');
$this->request $this->request
->expects($this->once()) ->expects($this->once())
->method('isUserAgent') ->method('isUserAgent')

Loading…
Cancel
Save