Minor refactorings

This commit is contained in:
Alejandro Celaya
2019-01-27 10:30:38 +01:00
parent f467bed24c
commit 558e259b84
5 changed files with 14 additions and 5 deletions

View File

@@ -11,11 +11,16 @@ abstract class DatabaseTestCase extends TestCase
protected const ENTITIES_TO_EMPTY = [];
/** @var EntityManagerInterface */
public static $em;
private static $em;
public static function setEntityManager(EntityManagerInterface $em): void
{
self::$em = $em;
}
protected function getEntityManager(): EntityManagerInterface
{
return static::$em;
return self::$em;
}
public function tearDown()