You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.
public function test_it_sends_email()
{
Mailgun::fake();
// any action that triggers sending mail through Bogardo/Mailgun package
$this->visit('/send-mail')
->press('Send!')
Mailgun::assertSent('mail.batch', function ($mail) use ($userA,$userB) {
return $mail->hasTo($userA->email, $userB->email) &&
$mail->hasCc('...') &&
$mail->isBcc('...') &&
$mail->isBcc('...');
});
}
The text was updated successfully, but these errors were encountered:
At the moment I'm using Mailgun postbin to retrieve content and test against it, but is very slow.
Would be amazing if it could support mocking.
Despite the fact that mailgun allows test mode, it doesn't help testing the mail data.
Perhaps it is possible to achieve this in other ways, but I'm using this library for convenience and to save time in development, having an easy way to test it would be a plus.
Thanks.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Similar to faking Laravel's Mail, the Mailgun facade should be fakeable:
The text was updated successfully, but these errors were encountered: