mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
- index method refactoret
- Added AppTest
This commit is contained in:
33
tests/Feature/App/AppTest.php
Normal file
33
tests/Feature/App/AppTest.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\App;
|
||||
|
||||
use App\Services\SetupService;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AppTest extends TestCase
|
||||
{
|
||||
use DatabaseMigrations;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->setup = app()->make(SetupService::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_index_page()
|
||||
{
|
||||
$this->setup->seed_default_pages();
|
||||
|
||||
$this->setup->seed_default_settings('Extended');
|
||||
|
||||
$this->get('/')
|
||||
->assertStatus(200);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user