fix(tests): replace RefreshDatabase with DatabaseTransactions
- Prevents local DB data loss when running 'php artisan test' - ViconApiConfigTest uses updateOrCreate to avoid unique constraint - Delete + Cache::flush for 'not configured' test case
This commit is contained in:
@@ -4,11 +4,11 @@ namespace App\Containers\VikonIntegration\Tests\Feature;
|
||||
|
||||
use App\Containers\User\Models\User;
|
||||
use App\Ship\Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
||||
class UpdatePartTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
use DatabaseTransactions;
|
||||
|
||||
private function createUser(): User
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user