Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/7825/head
Roeland Jago Douma 8 years ago
parent ca28df6fcc
commit 8d1dd1945f
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      tests/Core/Controller/LostControllerTest.php

@ -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…
Cancel
Save