mirror of
https://github.com/snipe/snipe-it.git
synced 2026-05-02 04:36:04 +00:00
Use the Setting model for basetest
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user