test(setup): add base test case and refresh the DB on each test

This commit is contained in:
peaklabs-dev 2025-04-22 21:51:06 +02:00
parent 52dab08027
commit b2406eedb0
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View file

@ -2,6 +2,9 @@
declare(strict_types=1);
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
/*
|--------------------------------------------------------------------------
| Test Case
@ -13,7 +16,8 @@ declare(strict_types=1);
|
*/
// pest()->extend(Tests\TestCase::class)->in('Feature');
pest()->extend(TestCase::class)
->use(RefreshDatabase::class);
/*
|--------------------------------------------------------------------------

9
tests/TestCase.php Normal file
View file

@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase {}