X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=tests%2FFeature%2FAuth%2FRegistrationTest.php;fp=tests%2FFeature%2FAuth%2FRegistrationTest.php;h=317a8270aaae5b305bcffbbfe633cbcd41df57df;hb=f642f1eda2a68ad5e09b71ccdae1499bc9d31e4f;hp=0000000000000000000000000000000000000000;hpb=78ee3a45427e1227013773b2a1c19fc1ee0efc12;p=alttp.git diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php new file mode 100644 index 0000000..317a827 --- /dev/null +++ b/tests/Feature/Auth/RegistrationTest.php @@ -0,0 +1,32 @@ +get('/register'); + + $response->assertStatus(200); + } + + public function test_new_users_can_register() + { + $response = $this->post('/register', [ + 'name' => 'Test User', + 'email' => 'test@example.com', + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(RouteServiceProvider::HOME); + } +}