Change sender for mailer send test to use authorized sending address
This commit is contained in:
committed by
M. Shull
parent
cc9a0c4141
commit
c7fd6a5bfe
@ -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();
|
||||||
|
Reference in New Issue
Block a user