This commit is contained in:
2026-11-03 11:51:44 +02:00
parent badaada043
commit e753f7a0a4
309 changed files with 14537 additions and 529 deletions
+3 -5
View File
@@ -6,16 +6,14 @@ use Inertia\Testing\AssertableInertia as Assert;
use Laravel\Fortify\Features;
test('security page is displayed', function () {
$this->skipUnlessFortifyHas(Features::twoFactorAuthentication());
Features::twoFactorAuthentication([
config(['fortify.features' => [Features::twoFactorAuthentication([
'confirm' => true,
'confirmPassword' => true,
]);
])]]);
$user = User::factory()->create();
$this->actingAs($user)
$this->actingAs($user)->withSession(['auth.password_confirmed_at' => now()->timestamp])
->get(route('security.edit'))
->assertInertia(fn (Assert $page) => $page
->component('settings/security')