Skip to content

Commit d24c41b

Browse files
committed
update test
1 parent b26daea commit d24c41b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stubs/tests/PasswordConfirmationTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Models\User;
66
use Illuminate\Foundation\Testing\RefreshDatabase;
7+
use Laravel\Jetstream\Features;
78
use Tests\TestCase;
89

910
class PasswordConfirmationTest extends TestCase
@@ -12,7 +13,9 @@ class PasswordConfirmationTest extends TestCase
1213

1314
public function test_confirm_password_screen_can_be_rendered()
1415
{
15-
$user = User::factory()->withPersonalTeam()->create();
16+
$user = Features::hasTeamFeatures()
17+
? User::factory()->withPersonalTeam()->create()
18+
: User::factory()->create();
1619

1720
$response = $this->actingAs($user)->get('/user/confirm-password');
1821

0 commit comments

Comments
 (0)