-
-
Save jaynarayan89/68adc22e2c910aa99c62841a4a7e6d3e to your computer and use it in GitHub Desktop.
laravel test error
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
/** @test */ | |
public function an_admin_can_resend_users_confirmation_email() | |
{ | |
$this->loginAsAdmin(); | |
$user = factory(User::class)->states('unconfirmed')->create(); | |
Notification::fake(); | |
$this->get("/admin/auth/user/{$user->id}/account/confirm/resend"); | |
Notification::assertSentTo($user, UserNeedsConfirmation::class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment