Skip to content

A free open source IT asset/license management system

Switch to using LazilyRefreshDatabase in unit test suite

Marcus Moore45d7e9b1342d
diff --git a/tests/Unit/BaseTest.php b/tests/Unit/BaseTest.php
index 136978be27..ae27956d2d 100644
--- a/tests/Unit/BaseTest.php
+++ b/tests/Unit/BaseTest.php
@@ -5,6 +5,7 @@ use App\Models\User;
use App\Models\Setting;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
+use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase;
use Auth;
@@ -12,7 +13,7 @@ use Artisan;
abstract class BaseTest extends TestCase
{
- use DatabaseTransactions;
+ use LazilyRefreshDatabase;
protected function _before()
{