diff --git a/src/Testing/InteractsWithMail.php b/src/Testing/InteractsWithMail.php index 4f77943..0cc72bd 100644 --- a/src/Testing/InteractsWithMail.php +++ b/src/Testing/InteractsWithMail.php @@ -18,7 +18,9 @@ private function setMailer(Mailer $mailer) private function getMailer() { - return $this->mailer ?: MailThief::getFacadeRoot(); + return tap($this->mailer ?: MailThief::getFacadeRoot(), function ($mailer) { + $this->setMailer($mailer); + }); } /**