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:
F4ilji
2026-07-10 17:11:27 +05:00
parent c59a08b3a0
commit 4e2105190b
9 changed files with 25 additions and 23 deletions
@@ -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
{