1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-02-24 11:13:02 +01:00
LinkAce/tests/TestCase.php
Kovah 03996f8bb3
Remove SETUP_COMPLETED variable (#398)
Replaces SETUP_COMPLETED variable with a database setting. Changes setup to add the setting to the database. Also adds a migration for existing installations.
2022-03-25 00:10:58 +01:00

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]
);
}
}