mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Allow testing of emails when Email::send_all_emails_to() is set
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@74303 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
23044a94dd
commit
89e45b67a2
@ -81,6 +81,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
$this->originalMailer = Email::mailer();
|
||||
$this->mailer = new TestMailer();
|
||||
Email::set_mailer($this->mailer);
|
||||
Email::send_all_emails_to(null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user