Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function _getEntityManager() |
||
40 | { |
||
41 | if (!$this->container->has(EntityManagerRegistry::class)) { |
||
42 | throw new \PHPUnit\Framework\AssertionFailedError( |
||
43 | "Service EntityManagerRegistry is not available in container" |
||
44 | ); |
||
45 | } |
||
46 | /** @var EntityManagerRegistry $registry */ |
||
47 | $registry = $this->container->get(EntityManagerRegistry::class); |
||
48 | |||
49 | return $registry->getManager(); |
||
50 | } |
||
51 | } |
||
52 |