/
Shamaeva2
/
coursework.local
Обзор
Документация
Войти
/
Shamaeva2
/
coursework.local
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
tests/Feature/Auth/PasswordConfirmationTest.php
33 строки
813 B
Шамаева Виктория Сергеевна
Инициализация проекта
20 мар 2026, 14:08
20 мар 2026, 14:08
2ebca05
Код
Авторство
О чём код?
<?php namespace Tests\Feature\Auth; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Tests\TestCase; class PasswordConfirmationTest extends TestCase { use RefreshDatabase; public function test_confirm_password_screen_can_be_rendered() { $user = User::factory()->create(); $response = $this->actingAs($user)->get(route('password.confirm')); $response->assertStatus(200); $response->assertInertia(fn (Assert $page) => $page ->component('auth/ConfirmPassword') ); } public function test_password_confirmation_requires_authentication() { $response = $this->get(route('password.confirm')); $response->assertRedirect(route('login')); } }