Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function properServiceFallbackOccursWhenInvoked(): void |
||
35 | { |
||
36 | $connection = $this->prophesize(Connection::class)->reveal(); |
||
37 | $getConnection = $this->em->getConnection()->willReturn($connection); |
||
38 | |||
39 | $result = ($this->factory)($this->container->reveal()); |
||
40 | |||
41 | $this->assertSame($connection, $result); |
||
42 | $getConnection->shouldHaveBeenCalledOnce(); |
||
43 | $this->container->get(EntityManager::class)->shouldHaveBeenCalledOnce(); |
||
44 | } |
||
46 |