Drop SQLite support (#2405)

This commit is contained in:
Kevin Papst
2021-03-08 16:06:22 +01:00
committed by GitHub
parent 70f7f35009
commit 30ac5e4c24
78 changed files with 1165 additions and 1596 deletions

24
tests/bootstrap.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require __DIR__ . '/../vendor/autoload.php';
if (isset($_ENV['BOOTSTRAP_RESET_DATABASE']) && $_ENV['BOOTSTRAP_RESET_DATABASE'] == true) {
echo 'Re-Installing test database ...' . PHP_EOL;
exec(sprintf(
'APP_ENV=test php "%s/../bin/console" kimai:reset-test --env=test --no-interaction -vvv',
__DIR__
), $output, $exitCode);
if ($exitCode !== 0) {
dump($output);
throw new \Exception('Failed to setup test database.');
}
}