mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Compare commits
No commits in common. "ffe1bc8fa2f734fb4d22677b6920ee59c200da15" and "9b91b2de98eeddfab34c3dfb157ea0b1fda0f297" have entirely different histories.
ffe1bc8fa2
...
9b91b2de98
@ -80,6 +80,7 @@ class TestSessionEnvironment
|
||||
|
||||
public function __construct($id = null)
|
||||
{
|
||||
$this->constructExtensions();
|
||||
if ($id) {
|
||||
$this->id = $id;
|
||||
}
|
||||
|
@ -69,7 +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()->set('admin_email', 'no-reply@example.com');
|
||||
Email::config()->update('admin_email', 'no-reply@example.com');
|
||||
}
|
||||
|
||||
// Connect to the test session database
|
||||
|
Loading…
Reference in New Issue
Block a user