Using 3.1 compatible Config API for setup

Avoids deprecation notices when testing against master
This commit is contained in:
Ingo Schommer 2013-06-19 12:24:00 +02:00
parent 3100c5aa2e
commit 3928919964
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**