Files
home-lab/BoilerPlate/tests/Feature/Auth/RegistrationTest.php
T
Shaun Collins 371fff18c0 Init
2026-02-23 13:17:51 +00:00

19 lines
510 B
PHP

<?php
test('registration screen can be rendered', function () {
$response = $this->get(route('register'));
$response->assertOk();
});
test('new users can register', function () {
$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));
});