fix unit tests

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-02-16 10:29:45 -06:00
parent c6071e027c
commit 48554db156
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 2 additions and 2 deletions

View File

@ -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