-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e73e184
commit e0a9d2e
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,15 +22,9 @@ public function test_email_verification_screen_can_be_rendered() | |
return $this->markTestSkipped('Email verification not enabled.'); | ||
} | ||
|
||
if (JetstreamFeatures::hasTeamFeatures()) { | ||
$user = User::factory()->withPersonalTeam()->create([ | ||
'email_verified_at' => null, | ||
]); | ||
} else { | ||
$user = User::factory()->create([ | ||
'email_verified_at' => null, | ||
]); | ||
} | ||
$user = User::factory()->withPersonalTeam()->create([ | ||
This comment has been minimized.
Sorry, something went wrong.
bdsumon4u
|
||
'email_verified_at' => null, | ||
]); | ||
|
||
$response = $this->actingAs($user)->get('/email/verify'); | ||
|
||
|
1 comment
on commit e0a9d2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this one overwrites the main part of https://github.com/laravel/jetstream/pull/737/files that was merged just before it. Was it intentional?
This file is published when Jetstream's team feature is enabled.
If team feature is disabled, Laravel's default UserFactory doesn't have this method. In that case, if email verification is enabled then EmailVerificationTest fails.