Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ca28df6fcc
commit
8d1dd1945f
1 changed files with 2 additions and 2 deletions
|
@ -653,14 +653,14 @@ class LostControllerTest extends \Test\TestCase {
|
|||
public function testIsSetPasswordWithoutTokenFailing() {
|
||||
$this->config->method('getUserValue')
|
||||
->with('ValidTokenUser', 'core', 'lostpassword', null)
|
||||
->will($this->returnValue(null));
|
||||
->willReturn('aValidtoken');
|
||||
$this->userManager->method('get')
|
||||
->with('ValidTokenUser')
|
||||
->willReturn($this->existingUser);
|
||||
|
||||
$this->crypto->method('decrypt')
|
||||
->with(
|
||||
$this->equalTo(''),
|
||||
$this->equalTo('aValidtoken'),
|
||||
$this->equalTo('test@example.comSECRET')
|
||||
)->willThrowException(new \Exception());
|
||||
|
||||
|
|
Loading…
Reference in a new issue