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,12 +3,12 @@
namespace Tests\Feature\Auth;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class RegistrationTest extends TestCase
{
use RefreshDatabase;
use DatabaseTransactions;
public function test_registration_screen_can_be_rendered(): void
{