mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
60 lines
1.3 KiB
PHP
60 lines
1.3 KiB
PHP
<?php
|
|
namespace Tests;
|
|
|
|
use DB;
|
|
use Carbon\Carbon;
|
|
use Illuminate\Support\Facades\Storage;
|
|
use Illuminate\Support\Facades\Notification;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Domain\SetupWizard\Actions\CreateDiskDirectoriesAction;
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
use CreatesApplication;
|
|
use DatabaseMigrations;
|
|
|
|
public function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
Carbon::setTestNow('1. January 2021');
|
|
|
|
Notification::fake();
|
|
|
|
Storage::fake('local');
|
|
|
|
resolve(CreateDiskDirectoriesAction::class)();
|
|
|
|
$this->storeDefaultSettings();
|
|
|
|
//$this->withoutExceptionHandling();
|
|
}
|
|
|
|
public function storeDefaultSettings()
|
|
{
|
|
DB::table('settings')->insert([
|
|
[
|
|
'name' => 'storage_limitation',
|
|
'value' => 1,
|
|
],
|
|
[
|
|
'name' => 'language',
|
|
'value' => 'en',
|
|
],
|
|
[
|
|
'name' => 'user_verification',
|
|
'value' => 0,
|
|
],
|
|
[
|
|
'name' => 'registration',
|
|
'value' => 1,
|
|
],
|
|
[
|
|
'name' => 'subscription_type',
|
|
'value' => null,
|
|
],
|
|
]);
|
|
}
|
|
}
|