mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
controller refactoring part 25
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
<?php
|
||||
namespace Tests\Domain\SetupWizard;
|
||||
|
||||
use Domain\Localization\Actions\SeedDefaultLanguageAction;
|
||||
use Storage;
|
||||
use Tests\TestCase;
|
||||
use Domain\Settings\Models\Setting;
|
||||
use Domain\Localization\Models\Language;
|
||||
use Domain\SetupWizard\Services\SetupService;
|
||||
|
||||
class SetupServiceTest extends TestCase
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->setup = app()->make(SetupService::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
@@ -33,15 +25,7 @@ class SetupServiceTest extends TestCase
|
||||
*/
|
||||
public function it_seed_default_language()
|
||||
{
|
||||
Setting::create([
|
||||
'name' => 'license',
|
||||
'value' => 'Extended',
|
||||
]);
|
||||
|
||||
Language::create([
|
||||
'name' => 'English',
|
||||
'locale' => 'en',
|
||||
]);
|
||||
resolve(SeedDefaultLanguageAction::class)();
|
||||
|
||||
$this->assertDatabaseHas('languages', [
|
||||
'name' => 'English',
|
||||
|
||||
Reference in New Issue
Block a user