We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b26daea commit d24c41bCopy full SHA for d24c41b
stubs/tests/PasswordConfirmationTest.php
@@ -4,6 +4,7 @@
4
5
use App\Models\User;
6
use Illuminate\Foundation\Testing\RefreshDatabase;
7
+use Laravel\Jetstream\Features;
8
use Tests\TestCase;
9
10
class PasswordConfirmationTest extends TestCase
@@ -12,7 +13,9 @@ class PasswordConfirmationTest extends TestCase
12
13
14
public function test_confirm_password_screen_can_be_rendered()
15
{
- $user = User::factory()->withPersonalTeam()->create();
16
+ $user = Features::hasTeamFeatures()
17
+ ? User::factory()->withPersonalTeam()->create()
18
+ : User::factory()->create();
19
20
$response = $this->actingAs($user)->get('/user/confirm-password');
21
0 commit comments