comparison stubs/default/pest-tests/Feature/Auth/RegistrationTest.php @ 0:90e38de8f2ba

Initial Commit
author luka
date Wed, 13 Aug 2025 22:17:20 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:90e38de8f2ba
1 <?php
2
3 test('registration screen can be rendered', function () {
4 $response = $this->get('/register');
5
6 $response->assertStatus(200);
7 });
8
9 test('new users can register', function () {
10 $response = $this->post('/register', [
11 'name' => 'Test User',
12 'email' => 'test@example.com',
13 'password' => 'password',
14 'password_confirmation' => 'password',
15 ]);
16
17 $this->assertAuthenticated();
18 $response->assertRedirect(route('dashboard', absolute: false));
19 });