Ensured db and api tests can be run without the need of creating the database beforehand

This commit is contained in:
Alejandro Celaya
2022-04-09 17:46:13 +02:00
parent 7d572e7988
commit 430e2ff0b5
3 changed files with 3 additions and 9 deletions

View File

@@ -8,5 +8,5 @@ use Psr\Container\ContainerInterface;
/** @var ContainerInterface $container */
$container = require __DIR__ . '/../container.php';
$container->get(Helper\TestHelper::class)->createTestDb();
$container->get(Helper\TestHelper::class)->createTestDb(['bin/cli', 'db:create'], ['bin/cli', 'db:migrate']);
DbTest\DatabaseTestCase::setEntityManager($container->get('em'));