FIX Add missing config to fix silverstipe/admin tests.

This commit is contained in:
Guy Sartorelli 2022-04-13 17:11:57 +12:00
parent 0c479ad2eb
commit 44e5364ec2

View File

@ -69,6 +69,7 @@ class TestSessionHTTPMiddleware implements HTTPMiddleware
$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