Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 6, 2021
1 parent b26daea commit d24c41b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stubs/tests/PasswordConfirmationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Jetstream\Features;
use Tests\TestCase;

class PasswordConfirmationTest extends TestCase
Expand All @@ -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');

Expand Down

0 comments on commit d24c41b

Please sign in to comment.