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(); $user = User::where('email', 'test@example.com')->first(); $response->assertRedirect(route('dashboard')); });