| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function testFindUserByGoogleSignInData() |
||
| 44 | { |
||
| 45 | $object = $this->object; |
||
| 46 | $repo = $this->createMock(EntityRepository::class); |
||
| 47 | $repo->expects($this->exactly(3))->method('findOneBy')->will($this->onConsecutiveCalls(new DateTime(), new DateTime(), new User())); |
||
| 48 | $this->getEm()->expects($this->exactly(3))->method('getRepository')->willReturn($repo); |
||
| 49 | $user = $object->findUserByGoogleSignInData('[email protected]', 12345679); |
||
| 50 | $this->assertInstanceOf(User::class, $user); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.