mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Merge branch '2.3' into 2
This commit is contained in:
commit
7733cc7c95
@ -69,6 +69,7 @@ class TestSessionHTTPMiddleware implements HTTPMiddleware
|
|||||||
$mailer = $testState->mailer;
|
$mailer = $testState->mailer;
|
||||||
Injector::inst()->registerService(new $mailer(), Mailer::class);
|
Injector::inst()->registerService(new $mailer(), Mailer::class);
|
||||||
Email::config()->set("send_all_emails_to", null);
|
Email::config()->set("send_all_emails_to", null);
|
||||||
|
Email::config()->update('admin_email', 'no-reply@example.com');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connect to the test session database
|
// Connect to the test session database
|
||||||
|
Loading…
Reference in New Issue
Block a user