mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 15:05:32 +00:00
Using 3.1 compatible Config API for setup
Avoids deprecation notices when testing against master
This commit is contained in:
parent
3100c5aa2e
commit
3928919964
@ -55,7 +55,7 @@ class EmailContext extends BehatContext
|
||||
// to ensure its available both in CLI execution and the tested browser session
|
||||
$this->mailer = new \SilverStripe\BehatExtension\Utility\TestMailer();
|
||||
\Email::set_mailer($this->mailer);
|
||||
\Email::send_all_emails_to(null);
|
||||
\Config::inst()->update("Email","send_all_emails_to", null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user