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