Replace mailinator with blackhole
Deliverability is not important in any of these tests, so it should be safer and more reliable to use blackhole@mailpoet.com instead of the old mailinator address, which was used before the blackhole@mailpoet.com address existed. [MAILPOET-4064]
This commit is contained in:
committed by
Veljko V
parent
6d22440936
commit
f46c3c2a76
@@ -53,7 +53,7 @@ class AmazonSESTest extends \MailPoetTest {
|
||||
$this->returnPath,
|
||||
new AmazonSESMapper()
|
||||
);
|
||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
||||
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||
$this->newsletter = [
|
||||
'subject' => 'testing AmazonSES … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||
'body' => [
|
||||
@@ -122,7 +122,7 @@ class AmazonSESTest extends \MailPoetTest {
|
||||
$message = $this->mailer
|
||||
->createMessage($this->newsletter, $this->subscriber, $this->extraParams);
|
||||
expect($message->getTo())
|
||||
->equals(['mailpoet-phoenix-test@mailinator.com' => 'Recipient']);
|
||||
->equals(['blackhole@mailpoet.com' => 'Recipient']);
|
||||
expect($message->getFrom())
|
||||
->equals([$this->sender['from_email'] => $this->sender['from_name']]);
|
||||
expect($message->getSender())
|
||||
|
@@ -47,7 +47,7 @@ class MailPoetAPITest extends \MailPoetTest {
|
||||
new MailPoetMapper(),
|
||||
$this->makeEmpty(AuthorizedEmailsController::class)
|
||||
);
|
||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
||||
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||
$this->newsletter = [
|
||||
'subject' => 'testing MailPoet … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||
'body' => [
|
||||
|
@@ -37,7 +37,7 @@ class PHPMailTest extends \MailPoetTest {
|
||||
$this->returnPath,
|
||||
new PHPMailMapper()
|
||||
);
|
||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
||||
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||
$this->newsletter = [
|
||||
'subject' => 'testing local method (PHP mail) … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||
'body' => [
|
||||
@@ -75,13 +75,13 @@ class PHPMailTest extends \MailPoetTest {
|
||||
expect($mailer->getToAddresses())->equals(
|
||||
[
|
||||
[
|
||||
'mailpoet-phoenix-test@mailinator.com',
|
||||
'blackhole@mailpoet.com',
|
||||
'Recipient',
|
||||
],
|
||||
]
|
||||
);
|
||||
expect($mailer->getAllRecipientAddresses())
|
||||
->equals(['mailpoet-phoenix-test@mailinator.com' => true]);
|
||||
->equals(['blackhole@mailpoet.com' => true]);
|
||||
expect($mailer->From)->equals($this->sender['from_email']); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
|
||||
expect($mailer->FromName)->equals($this->sender['from_name']); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
|
||||
expect($mailer->getReplyToAddresses())->equals(
|
||||
|
@@ -60,7 +60,7 @@ class SMTPTest extends \MailPoetTest {
|
||||
$this->settings['login'],
|
||||
$this->settings['password']
|
||||
);
|
||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
||||
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||
$this->newsletter = [
|
||||
'subject' => 'testing SMTP … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||
'body' => [
|
||||
@@ -107,7 +107,7 @@ class SMTPTest extends \MailPoetTest {
|
||||
$message = $this->mailer
|
||||
->createMessage($this->newsletter, $this->subscriber, $this->extraParams);
|
||||
expect($message->getTo())
|
||||
->equals(['mailpoet-phoenix-test@mailinator.com' => 'Recipient']);
|
||||
->equals(['blackhole@mailpoet.com' => 'Recipient']);
|
||||
expect($message->getFrom())
|
||||
->equals([$this->sender['from_email'] => $this->sender['from_name']]);
|
||||
expect($message->getSender())
|
||||
|
@@ -42,7 +42,7 @@ class SendGridTest extends \MailPoetTest {
|
||||
$this->replyTo,
|
||||
new SendGridMapper()
|
||||
);
|
||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
||||
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||
$this->newsletter = [
|
||||
'subject' => 'testing SendGrid … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||
'body' => [
|
||||
|
Reference in New Issue
Block a user