|
|
|
@ -142,6 +142,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')
|
|
|
|
@ -166,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')
|
|
|
|
@ -186,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')
|
|
|
|
|