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:12:11 +02:00
parent 2015b89474
commit 77e29d47c7

View File

@ -8,7 +8,7 @@ if(
// Register mailer // Register mailer
if($mailer = Session::get('testsession.mailer')) { if($mailer = Session::get('testsession.mailer')) {
Email::set_mailer(new $mailer()); Email::set_mailer(new $mailer());
Email::send_all_emails_to(null); \Config::inst()->update("Email","send_all_emails_to", null);
} }
// Set mock date and time // Set mock date and time