Mercurial > packages > auth
annotate stubs/default/pest-tests/Feature/Auth/RegistrationTest.php @ 2:ac199a7a8931 default tip
Changes to the views and only defualt option is available
| author | luka |
|---|---|
| date | Tue, 19 Aug 2025 20:32:36 -0400 |
| parents | 90e38de8f2ba |
| children |
| rev | line source |
|---|---|
| 0 | 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 }); |
