Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function testClearEntityManagerAfterTask() |
||
24 | { |
||
25 | $entityManager = $this->prophesize(EntityManagerInterface::class); |
||
26 | |||
27 | $listener = new DoctrineTaskExecutionListener($entityManager->reveal()); |
||
28 | $listener->clearEntityManagerAfterTask($this->prophesize(TaskExecutionEvent::class)->reveal()); |
||
29 | |||
30 | $entityManager->clear()->shouldBeCalled(); |
||
31 | } |
||
32 | } |
||
33 |