make tests happy
This commit is contained in:
parent
9aa867e8aa
commit
840555df42
|
|
@ -20,6 +20,11 @@ class Option
|
|||
return;
|
||||
}
|
||||
|
||||
if (!file_exists(storage_path('install.lock')) || app()->runningUnitTests()) {
|
||||
$this->items = collect();
|
||||
return;
|
||||
}
|
||||
|
||||
$this->items = DB::table('options')
|
||||
->get()
|
||||
->mapWithKeys(fn ($item) => [$item->option_name => $item->option_value]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user