diff --git a/tests/Feature/Course/DeleteTest.php b/tests/Feature/Course/DeleteTest.php index 8a396893..7d019b9f 100644 --- a/tests/Feature/Course/DeleteTest.php +++ b/tests/Feature/Course/DeleteTest.php @@ -5,7 +5,7 @@ namespace Tests\Feature\Course; use App\Course\Models\Course; use App\Course\Models\CourseMember; use App\Member\Member; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; use Zoomyboy\LaravelNami\Backend\FakeBackend; @@ -14,7 +14,7 @@ use Zoomyboy\LaravelNami\Fakes\CourseFake; class DeleteTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; public function testItDeletesACourse(): void { diff --git a/tests/Feature/Course/StoreTest.php b/tests/Feature/Course/StoreTest.php index 67de9402..319be838 100644 --- a/tests/Feature/Course/StoreTest.php +++ b/tests/Feature/Course/StoreTest.php @@ -4,7 +4,7 @@ namespace Tests\Feature\Course; use App\Course\Models\Course; use App\Member\Member; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; use Zoomyboy\LaravelNami\Backend\FakeBackend; @@ -13,7 +13,7 @@ use Zoomyboy\LaravelNami\Fakes\CourseFake; class StoreTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; /** * @return array, errors: array}> diff --git a/tests/Feature/Course/UpdateTest.php b/tests/Feature/Course/UpdateTest.php index 2aa754a7..3daf513c 100644 --- a/tests/Feature/Course/UpdateTest.php +++ b/tests/Feature/Course/UpdateTest.php @@ -5,7 +5,7 @@ namespace Tests\Feature\Course; use App\Course\Models\Course; use App\Course\Models\CourseMember; use App\Member\Member; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; use Zoomyboy\LaravelNami\Backend\FakeBackend; @@ -14,7 +14,7 @@ use Zoomyboy\LaravelNami\Fakes\CourseFake; class UpdateTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; /** * @return array, errors: array}> diff --git a/tests/Feature/Initialize/InitializeTest.php b/tests/Feature/Initialize/InitializeTest.php index 78e73d9c..51fcfd2b 100644 --- a/tests/Feature/Initialize/InitializeTest.php +++ b/tests/Feature/Initialize/InitializeTest.php @@ -11,7 +11,7 @@ use App\Member\Member; use App\Nationality; use App\Setting\GeneralSettings; use App\Subactivity; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Http; @@ -21,7 +21,7 @@ use Zoomyboy\LaravelNami\Backend\FakeBackend; class InitializeTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; public function initializeProvider(callable $callback = null): void { diff --git a/tests/Feature/Member/IndexTest.php b/tests/Feature/Member/IndexTest.php index b30e55fa..85b1326f 100644 --- a/tests/Feature/Member/IndexTest.php +++ b/tests/Feature/Member/IndexTest.php @@ -5,14 +5,14 @@ namespace Tests\Feature\Member; use App\Course\Models\Course; use App\Course\Models\CourseMember; use App\Member\Member; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Tests\TestCase; use Zoomyboy\LaravelNami\Backend\FakeBackend; class IndexTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; public function testItGetsMembers(): void { diff --git a/tests/Feature/NamiLoginTest.php b/tests/Feature/NamiLoginTest.php index e6e7a212..f29012c5 100644 --- a/tests/Feature/NamiLoginTest.php +++ b/tests/Feature/NamiLoginTest.php @@ -3,7 +3,7 @@ namespace Tests\Feature; use App\Setting\GeneralSettings; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Http; @@ -14,7 +14,7 @@ use Zoomyboy\LaravelNami\Backend\FakeBackend; class NamiLoginTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; public function setUp(): void { diff --git a/tests/Feature/Pdf/GenerateTest.php b/tests/Feature/Pdf/GenerateTest.php index 6a75fe31..c96143c6 100644 --- a/tests/Feature/Pdf/GenerateTest.php +++ b/tests/Feature/Pdf/GenerateTest.php @@ -14,7 +14,7 @@ use App\Pdf\PdfRepositoryFactory; use Carbon\Carbon; use Database\Factories\Member\MemberFactory; use Database\Factories\Payment\PaymentFactory; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Support\Collection; use Storage; use Tests\TestCase; @@ -22,7 +22,7 @@ use Tests\TestCase; class GenerateTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; public function setUp(): void { diff --git a/tests/Feature/Settings/GlobalSettingTest.php b/tests/Feature/Settings/GlobalSettingTest.php index 120111b1..c469f359 100644 --- a/tests/Feature/Settings/GlobalSettingTest.php +++ b/tests/Feature/Settings/GlobalSettingTest.php @@ -3,14 +3,14 @@ namespace Tests\Feature\Settings; use App\Setting\GeneralSettings; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class GlobalSettingTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; public function testItLoadsGeneralSettings(): void { diff --git a/tests/Feature/UserLoginTest.php b/tests/Feature/UserLoginTest.php index 6646f51b..320874b9 100644 --- a/tests/Feature/UserLoginTest.php +++ b/tests/Feature/UserLoginTest.php @@ -4,7 +4,7 @@ namespace Tests\Feature; use App\Setting\GeneralSettings; use App\User; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Hash; @@ -16,7 +16,7 @@ use Zoomyboy\LaravelNami\Backend\FakeBackend; class UserLoginTest extends TestCase { - use RefreshDatabase; + use DatabaseTransactions; public function setUp(): void {