mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Using 3.1 compatible Config API for setup
Avoids deprecation notices when testing against master
This commit is contained in:
parent
2015b89474
commit
77e29d47c7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user