mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-02-24 11:13:02 +01:00
Replaces SETUP_COMPLETED variable with a database setting. Changes setup to add the setting to the database. Also adds a migration for existing installations.
22 lines
421 B
PHP
22 lines
421 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use App\Models\Setting;
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
use CreatesApplication;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
Setting::updateOrCreate(
|
|
['key' => 'system_setup_completed'],
|
|
['key' => 'system_setup_completed', 'value' => true]
|
|
);
|
|
}
|
|
}
|