diff --git a/stubs/tests/PasswordConfirmationTest.php b/stubs/tests/PasswordConfirmationTest.php index 231409497..6bb50c596 100644 --- a/stubs/tests/PasswordConfirmationTest.php +++ b/stubs/tests/PasswordConfirmationTest.php @@ -4,6 +4,7 @@ use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; +use Laravel\Jetstream\Features; use Tests\TestCase; class PasswordConfirmationTest extends TestCase @@ -12,7 +13,9 @@ class PasswordConfirmationTest extends TestCase public function test_confirm_password_screen_can_be_rendered() { - $user = User::factory()->withPersonalTeam()->create(); + $user = Features::hasTeamFeatures() + ? User::factory()->withPersonalTeam()->create() + : User::factory()->create(); $response = $this->actingAs($user)->get('/user/confirm-password');