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