Change sender for mailer send test to use authorized sending address

This commit is contained in:
Rostislav Wolny
2019-03-18 15:55:59 +01:00
committed by M. Shull
parent cc9a0c4141
commit c7fd6a5bfe

View File

@ -180,6 +180,7 @@ class MailerTest extends \MailPoetTest {
function testItCanSend() { function testItCanSend() {
if (getenv('WP_TEST_MAILER_ENABLE_SENDING') !== 'true') return; 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); $mailer = new Mailer($this->mailer, $this->sender, $this->reply_to);
$result = $mailer->send($this->newsletter, $this->subscriber); $result = $mailer->send($this->newsletter, $this->subscriber);
expect($result['response'])->true(); expect($result['response'])->true();