Skip to content

Instantly share code, notes, and snippets.

@jaynarayan89
Created July 25, 2019 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaynarayan89/68adc22e2c910aa99c62841a4a7e6d3e to your computer and use it in GitHub Desktop.
Save jaynarayan89/68adc22e2c910aa99c62841a4a7e6d3e to your computer and use it in GitHub Desktop.
laravel test error
/** @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