create(); $this->post('/password/email', ['email' => $user->email]); NotificationFacade::assertSentTo($user, ResetPassword::class); $notifications = NotificationFacade::sent($user, ResetPassword::class); $message = $notifications[0]->toMail($user); $this->assertStringContainsString('You are receiving this email because we received a password reset request for your account.', implode('', $message->introLines)); } }