mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
FIX Define admin_email
This commit is contained in:
parent
b9b4c1d2a2
commit
c7801bb1fb
@ -52,6 +52,7 @@ class EmailContext implements Context
|
|||||||
$this->mailer = new TestMailer();
|
$this->mailer = new TestMailer();
|
||||||
Injector::inst()->registerService($this->mailer, Mailer::class);
|
Injector::inst()->registerService($this->mailer, Mailer::class);
|
||||||
Email::config()->update("send_all_emails_to", null);
|
Email::config()->update("send_all_emails_to", null);
|
||||||
|
Email::config()->update('admin_email', 'no-reply@example.com');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user