Files
core/phpunit.bootstrap.php
2020-06-24 13:49:51 +02:00

20 lines
767 B
PHP

<?php
declare(strict_types=1);
require __DIR__.'/vendor/autoload.php';
$kernel = new \Bolt\Kernel('test', true);
$kernel->boot();
$application = new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
$application->setAutoExit(false);
$application->setCatchExceptions(false);
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:database:drop --force --quiet'));
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:database:create --quiet'));
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:schema:create --quiet'));
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:fixtures:load --no-interaction --group=without-images'));
$kernel->shutdown();