From 89e45b67a2046e490084c84a5dc0264cfff7bcb4 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 9 Apr 2009 00:50:31 +0000 Subject: [PATCH] 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 --- dev/SapphireTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index c14e27a3d..55ea6f839 100644 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -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); } /**