reset database for each test, test menuitem creation
Some checks failed
/ ls (pull_request) Successful in 35s
/ ls (push) Failing after 34s

This commit is contained in:
lubiana 2024-06-27 16:57:15 +02:00
parent 01354fa70c
commit 634f13d968
No known key found for this signature in database
2 changed files with 25 additions and 6 deletions

View file

@ -25,13 +25,8 @@ abstract class DbWebTest extends WebTestCase
$schemaTool = new SchemaTool($this->manager);
$metadata = $this->manager->getMetadataFactory()
->getAllMetadata();
$schemaTool->dropDatabase();
$schemaTool->updateSchema($metadata);
$this->repository = $this->manager->getRepository($this->getEntityClass());
foreach ($this->repository->findAll() as $object) {
$this->manager->remove($object);
}
$this->manager->flush();
}
}