Merge pull request #74 from creative-commoners/pulls/2.3/add-missing-email-config

FIX Add missing config to fix silverstipe/admin tests.
This commit is contained in:
Steve Boyd 2022-04-13 18:13:46 +12:00 committed by GitHub
commit 22b9ca23cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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