siakad-itm/tests/Feature/Auth/PasswordConfirmationTest.php
Yoga Pangestu 9c2bb62666
Some checks failed
tests / ci (pull_request) Has been cancelled
fix: standardize closure syntax and ensure newline at end of file in multiple files
2026-08-25 18:16:54 +07:00

23 lines
570 B
PHP

<?php
use App\Models\User;
use Inertia\Testing\AssertableInertia as Assert;
test('confirm password screen can be rendered', function () {
$user = User::factory()->create();
$response = $this->actingAs($user)->get(route('password.confirm'));
$response->assertOk();
$response->assertInertia(fn (Assert $page) => $page
->component('auth/confirm-password'),
);
});
test('password confirmation requires authentication', function () {
$response = $this->get(route('password.confirm'));
$response->assertRedirect(route('login'));
});