Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | public function testCreateUserGetsHandled() |
||
25 | { |
||
26 | $handler = new CreateUserHandler($this->userRepository); |
||
27 | |||
28 | $user = new CreateUser('sumo', 'randomPassword', 'sumocoders'); |
||
29 | |||
30 | $handler->handle($user); |
||
31 | |||
32 | $this->assertEquals( |
||
33 | 'sumo', |
||
34 | $this->userRepository->findByUsername('sumo')->getUsername() |
||
35 | ); |
||
36 | $this->assertEquals( |
||
37 | 'sumocoders', |
||
38 | $this->userRepository->findByUsername('sumo')->getDisplayName() |
||
39 | ); |
||
40 | $this->assertEquals( |
||
41 | 'randomPassword', |
||
42 | $this->userRepository->findByUsername('sumo')->getPassword() |
||
43 | ); |
||
44 | } |
||
45 | } |
||
46 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..