Files
cv-roberto/tests/Feature/Auth/RegistrationTest.php
Roberto 9df6c0ab46
All checks were successful
Tests / Laravel tests (pull_request) Successful in 3m31s
feat: include testing, factories, git workflow for testing.
2026-06-03 21:23:39 +02:00

20 lines
628 B
PHP

<?php
test('registration screen can be rendered', function () {
$response = $this->get('/register');
$response->assertStatus(200);
})->skip('Registration routes are disabled for this application.');
test('new users can register', function () {
$response = $this->post('/register', [
'name' => 'Test User',
'email' => 'test@example.com',
'password' => 'password',
'password_confirmation' => 'password',
]);
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
})->skip('Registration routes are disabled for this application.');