mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(tests): Fix remaining tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
db11313152
commit
2ee5c7a8f9
1 changed files with 7 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ class LoginControllerTest extends TestCase {
|
|||
$this->request
|
||||
->expects($this->once())
|
||||
->method('isUserAgent')
|
||||
->willReturn(true);
|
||||
->willReturn(false);
|
||||
$this->config
|
||||
->expects($this->never())
|
||||
->method('deleteUserValue');
|
||||
|
|
@ -169,6 +169,9 @@ class LoginControllerTest extends TestCase {
|
|||
->method('getCookie')
|
||||
->with('nc_token')
|
||||
->willReturn(null);
|
||||
$this->request
|
||||
->method('getServerProtocol')
|
||||
->willReturn('https');
|
||||
$this->request
|
||||
->expects($this->once())
|
||||
->method('isUserAgent')
|
||||
|
|
@ -189,6 +192,9 @@ class LoginControllerTest extends TestCase {
|
|||
->method('getCookie')
|
||||
->with('nc_token')
|
||||
->willReturn('MyLoginToken');
|
||||
$this->request
|
||||
->method('getServerProtocol')
|
||||
->willReturn('https');
|
||||
$this->request
|
||||
->expects($this->once())
|
||||
->method('isUserAgent')
|
||||
|
|
|
|||
Loading…
Reference in a new issue