From c7fd6a5bfec12370b8c883d68e5cae35c9e36d68 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Mon, 18 Mar 2019 15:55:59 +0100 Subject: [PATCH] Change sender for mailer send test to use authorized sending address --- tests/integration/Mailer/MailerTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/Mailer/MailerTest.php b/tests/integration/Mailer/MailerTest.php index 6c5ebdd45f..50118caf6e 100644 --- a/tests/integration/Mailer/MailerTest.php +++ b/tests/integration/Mailer/MailerTest.php @@ -180,6 +180,7 @@ class MailerTest extends \MailPoetTest { function testItCanSend() { if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return; + $this->sender['address'] = 'staff@mailpoet.com'; $mailer = new Mailer($this->mailer, $this->sender, $this->reply_to); $result = $mailer->send($this->newsletter, $this->subscriber); expect($result['response'])->true();