From eb3f872dc6d0af4eea927c49a12f10e0952fe28e Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 30 Nov 2016 12:39:27 -0500 Subject: [PATCH] - Updates mailer unit test --- tests/unit/Mailer/MailerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/Mailer/MailerTest.php b/tests/unit/Mailer/MailerTest.php index 61b5d51c00..16cf8efb07 100644 --- a/tests/unit/Mailer/MailerTest.php +++ b/tests/unit/Mailer/MailerTest.php @@ -163,6 +163,7 @@ class MailerTest extends MailPoetTest { function testItCanSend() { if(getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return; $mailer = new Mailer($this->mailer, $this->sender, $this->reply_to); - expect($mailer->send($this->newsletter, $this->subscriber))->true(); + $result = $mailer->send($this->newsletter, $this->subscriber); + expect($result['response'])->true(); } } \ No newline at end of file