| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class DatabaseTestCase extends TestCase |
||
| 10 | { |
||
| 11 | protected const ENTITIES_TO_EMPTY = []; |
||
| 12 | |||
| 13 | /** @var EntityManagerInterface */ |
||
| 14 | private static $em; |
||
| 15 | |||
| 16 | public static function setEntityManager(EntityManagerInterface $em): void |
||
| 17 | { |
||
| 18 | self::$em = $em; |
||
| 19 | } |
||
| 20 | |||
| 21 | protected function getEntityManager(): EntityManagerInterface |
||
| 22 | { |
||
| 23 | return self::$em; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function tearDown() |
||
| 35 | } |
||
| 36 | } |
||
| 37 |