#29: add test for homecontroller

This commit is contained in:
lubiana 2024-07-10 19:05:28 +02:00
parent 5d41b6fef5
commit c4cd275c83
No known key found for this signature in database
2 changed files with 72 additions and 1 deletions

View file

@ -28,6 +28,8 @@ abstract class DbWebTest extends WebTestCase
$schemaTool->dropDatabase();
$schemaTool->updateSchema($metadata);
$this->repository = $this->manager->getRepository($this->getEntityClass());
if ($this->getEntityClass() !== '') {
$this->repository = $this->manager->getRepository($this->getEntityClass());
}
}
}