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,13 +4,13 @@ namespace Tests\Feature\Auth;
|
||||
|
||||
use App\Containers\User\Models\User;
|
||||
use Illuminate\Auth\Notifications\ResetPassword;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Tests\TestCase;
|
||||
|
||||
class PasswordResetTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
use DatabaseTransactions;
|
||||
|
||||
public function test_reset_password_link_screen_can_be_rendered(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user