fix unit tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
c6071e027c
commit
48554db156
|
@ -89,7 +89,7 @@ class LoginControllerTest extends TestCase {
|
|||
$this->request
|
||||
->expects($this->once())
|
||||
->method('getCookie')
|
||||
->with('oc_token')
|
||||
->with('nc_token')
|
||||
->willReturn(null);
|
||||
$this->config
|
||||
->expects($this->never())
|
||||
|
@ -108,7 +108,7 @@ class LoginControllerTest extends TestCase {
|
|||
$this->request
|
||||
->expects($this->once())
|
||||
->method('getCookie')
|
||||
->with('oc_token')
|
||||
->with('nc_token')
|
||||
->willReturn('MyLoginToken');
|
||||
$user = $this->getMockBuilder('\\OCP\\IUser')->getMock();
|
||||
$user
|
||||
|
|
Loading…
Reference in New Issue