@@ -38,6 +38,9 @@ |
||
| 38 | 38 | return new UserManager($this->entityManager->reveal()); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $id |
|
| 43 | + */ |
|
| 41 | 44 | protected function user($id) |
| 42 | 45 | { |
| 43 | 46 | return new class($id) { |
@@ -86,8 +86,8 @@ |
||
| 86 | 86 | $token2 = new Token('string', 'jdoe','unique-token-2', 'reset-password', '+1 day', []); |
| 87 | 87 | |
| 88 | 88 | $this->factory->expects($this->exactly(2)) |
| 89 | - ->method('create') |
|
| 90 | - ->will($this->onConsecutiveCalls($token1, $token2)); |
|
| 89 | + ->method('create') |
|
| 90 | + ->will($this->onConsecutiveCalls($token1, $token2)); |
|
| 91 | 91 | |
| 92 | 92 | $this->repository->exists('unique-token-1', 'forgot_password') |
| 93 | 93 | ->shouldBeCalledTimes(1) |