From 3928919964d502c407d16e17de0a43f415bd92ed Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 19 Jun 2013 12:24:00 +0200 Subject: [PATCH] Using 3.1 compatible Config API for setup Avoids deprecation notices when testing against master --- src/SilverStripe/BehatExtension/Context/EmailContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**