test: Add feature tests

This commit is contained in:
Attila Kerekes
2022-12-04 10:14:07 +01:00
committed by Attila Kerekes
parent 52620bc331
commit 45cc84c99c
17 changed files with 360 additions and 31 deletions

View File

@@ -137,8 +137,11 @@ class AppServiceProvider extends ServiceProvider
{
$db_type = config()->get('database.default');
if ($db_type == 'sqlite' && ! is_file(database_path('app.sqlite'))) {
touch(database_path('app.sqlite'));
if ($db_type == 'sqlite') {
$db_file = database_path(env('DB_DATABASE', 'app.sqlite'));
if (! is_file($db_file)) {
touch($db_file);
}
}
if ($this->needsDBUpdate()) {