mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Minor refactorings
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user