markTestSkipped('Registration support is not enabled.'); } $response = $this->get('/register'); $response->assertStatus(200); } public function test_new_users_can_register() { if (! Features::enabled(Features::registration())) { return $this->markTestSkipped('Registration support is not enabled.'); } $response = $this->post('/register', [ 'first_name' => 'Test', 'last_name' => 'User', 'email' => 'test@example.com', 'password' => 'Password$123', 'password_confirmation' => 'Password$123', 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature(), ]); $this->assertAuthenticated(); $response->assertRedirect(RouteServiceProvider::HOME); } }