From d24c41bca5fd69fa369915565a18ac2510b04928 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 6 Jan 2021 09:34:22 -0600 Subject: [PATCH] update test --- stubs/tests/PasswordConfirmationTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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');