<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; use App\Models\User; class MfaMiddlewareTest extends TestCase{use RefreshDatabase;public function test_privileged_mfa_user_is_redirected_to_challenge():void{$this->seed();$u=User::where('email','founder@softsuite.local')->first();$u->update(['mfa_enabled'=>true]);$this->actingAs($u)->get('/')->assertRedirect(route('mfa.challenge'));}}