diff --git a/src/TestSessionHTTPMiddleware.php b/src/TestSessionHTTPMiddleware.php index c031558..4921c27 100644 --- a/src/TestSessionHTTPMiddleware.php +++ b/src/TestSessionHTTPMiddleware.php @@ -69,6 +69,7 @@ protected function loadTestState(HTTPRequest $request) $mailer = $testState->mailer; Injector::inst()->registerService(new $mailer(), Mailer::class); Email::config()->set("send_all_emails_to", null); + Email::config()->update('admin_email', 'no-reply@example.com'); } // Connect to the test session database