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
|
$this->request
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('getCookie')
|
->method('getCookie')
|
||||||
->with('oc_token')
|
->with('nc_token')
|
||||||
->willReturn(null);
|
->willReturn(null);
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->never())
|
->expects($this->never())
|
||||||
|
@ -108,7 +108,7 @@ class LoginControllerTest extends TestCase {
|
||||||
$this->request
|
$this->request
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('getCookie')
|
->method('getCookie')
|
||||||
->with('oc_token')
|
->with('nc_token')
|
||||||
->willReturn('MyLoginToken');
|
->willReturn('MyLoginToken');
|
||||||
$user = $this->getMockBuilder('\\OCP\\IUser')->getMock();
|
$user = $this->getMockBuilder('\\OCP\\IUser')->getMock();
|
||||||
$user
|
$user
|
||||||
|
|
Loading…
Reference in New Issue