@@ -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) { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | call_user_func( |
4 | - function () { |
|
4 | + function() { |
|
5 | 5 | if (!is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) { |
6 | 6 | throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?'); |
7 | 7 | } |
@@ -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) |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function it_create_unique_token() |
84 | 84 | { |
85 | - $token1 = new Token('string', 'jdoe','unique-token-1', 'reset-password', '+1 day', []); |
|
86 | - $token2 = new Token('string', 'jdoe','unique-token-2', 'reset-password', '+1 day', []); |
|
85 | + $token1 = new Token('string', 'jdoe', 'unique-token-1', 'reset-password', '+1 day', []); |
|
86 | + $token2 = new Token('string', 'jdoe', 'unique-token-2', 'reset-password', '+1 day', []); |
|
87 | 87 | |
88 | 88 | $this->factory->expects($this->exactly(2)) |
89 | 89 | ->method('create') |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function it_consume_token() |
113 | 113 | { |
114 | - $token = new Token('string', 'jdoe','unique-token', 'reset-password', '+1 day', []); |
|
114 | + $token = new Token('string', 'jdoe', 'unique-token', 'reset-password', '+1 day', []); |
|
115 | 115 | |
116 | 116 | $this->informationGuesser->get() |
117 | 117 | ->shouldBeCalledTimes(1) |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function it_extract_user_from_token() |
133 | 133 | { |
134 | - $token = new Token('string', 'jdoe','unique-token', 'reset-password', '+1 day', []); |
|
134 | + $token = new Token('string', 'jdoe', 'unique-token', 'reset-password', '+1 day', []); |
|
135 | 135 | |
136 | 136 | $this->userManager->get('string', 'jdoe') |
137 | 137 | ->shouldBeCalledTimes(1) |