/
Shamaeva2
/
coursework.local
Обзор
Документация
Войти
/
Shamaeva2
/
coursework.local
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
tests/Feature/Auth/RegistrationTest.php
31 строка
757 B
Шамаева Виктория Сергеевна
Инициализация проекта
20 мар 2026, 14:08
20 мар 2026, 14:08
2ebca05
Код
Авторство
О чём код?
<?php namespace Tests\Feature\Auth; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; class RegistrationTest extends TestCase { use RefreshDatabase; public function test_registration_screen_can_be_rendered() { $response = $this->get(route('register')); $response->assertStatus(200); } public function test_new_users_can_register() { $response = $this->post(route('register.store'), [ 'name' => 'Test User', 'email' => 'test@example.com', 'password' => 'password', 'password_confirmation' => 'password', ]); $this->assertAuthenticated(); $response->assertRedirect(route('dashboard', absolute: false)); } }