add food vendor tests
This commit is contained in:
parent
63bf367ab0
commit
a7bec45c48
8 changed files with 39 additions and 53 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue