diff --git a/src/SilverStripe/BehatExtension/Context/EmailContext.php b/src/SilverStripe/BehatExtension/Context/EmailContext.php index c037aad..47f2145 100644 --- a/src/SilverStripe/BehatExtension/Context/EmailContext.php +++ b/src/SilverStripe/BehatExtension/Context/EmailContext.php @@ -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); } /**