add food vendor tests
All checks were successful
/ ls (pull_request) Successful in 28s
/ ls (push) Successful in 28s

This commit is contained in:
lubiana 2024-06-14 20:21:16 +02:00
parent 63bf367ab0
commit a7bec45c48
No known key found for this signature in database
8 changed files with 39 additions and 53 deletions

View file

@ -22,8 +22,10 @@ abstract class DbWebTest extends WebTestCase
{
$this->client = static::createClient();
$this->manager = static::getContainer()->get('doctrine')->getManager();
(new SchemaTool($this->manager))
->createSchema($this->manager->getMetadataFactory()->getAllMetadata());
$schemaTool = new SchemaTool($this->manager);
$metadata = $this->manager->getMetadataFactory()
->getAllMetadata();
$schemaTool->updateSchema($metadata);
$this->repository = $this->manager->getRepository($this->getEntityClass());
foreach ($this->repository->findAll() as $object) {