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
+2 -2
View File
@@ -3,13 +3,13 @@
namespace Tests\Feature\Auth;
use App\Containers\User\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Facades\Hash;
use Tests\TestCase;
class PasswordUpdateTest extends TestCase
{
use RefreshDatabase;
use DatabaseTransactions;
public function test_password_can_be_updated(): void
{