|
|
|
|
|
|
|
|
->method('createSessionToken') |
|
|
->method('createSessionToken') |
|
|
->with($this->request, $user->getUID(), $password); |
|
|
->with($this->request, $user->getUID(), $password); |
|
|
$this->urlGenerator->expects($this->once()) |
|
|
$this->urlGenerator->expects($this->once()) |
|
|
->method('linkTo') |
|
|
|
|
|
->with('files', 'index') |
|
|
|
|
|
|
|
|
->method('linkToRoute') |
|
|
|
|
|
->with('files.view.index') |
|
|
->will($this->returnValue($indexPageUrl)); |
|
|
->will($this->returnValue($indexPageUrl)); |
|
|
|
|
|
|
|
|
$expected = new \OCP\AppFramework\Http\RedirectResponse($indexPageUrl); |
|
|
$expected = new \OCP\AppFramework\Http\RedirectResponse($indexPageUrl); |