mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Use the Setting model for basetest
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
390e8a6cc3
commit
5a01fff79c
|
@ -2,11 +2,13 @@
|
|||
namespace Tests\Unit;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Setting;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
use Tests\TestCase;
|
||||
use Auth;
|
||||
use Artisan;
|
||||
|
||||
class BaseTest extends TestCase
|
||||
{
|
||||
|
@ -15,7 +17,7 @@ class BaseTest extends TestCase
|
|||
protected function _before()
|
||||
{
|
||||
Artisan::call('migrate');
|
||||
\App\Models\Setting::factory()->create();
|
||||
Setting::factory()->create();
|
||||
}
|
||||
|
||||
protected function signIn($user = null)
|
||||
|
|
Loading…
Reference in a new issue