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,
|
$this->returnPath,
|
||||||
new AmazonSESMapper()
|
new AmazonSESMapper()
|
||||||
);
|
);
|
||||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||||
$this->newsletter = [
|
$this->newsletter = [
|
||||||
'subject' => 'testing AmazonSES … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
'subject' => 'testing AmazonSES … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||||
'body' => [
|
'body' => [
|
||||||
@@ -122,7 +122,7 @@ class AmazonSESTest extends \MailPoetTest {
|
|||||||
$message = $this->mailer
|
$message = $this->mailer
|
||||||
->createMessage($this->newsletter, $this->subscriber, $this->extraParams);
|
->createMessage($this->newsletter, $this->subscriber, $this->extraParams);
|
||||||
expect($message->getTo())
|
expect($message->getTo())
|
||||||
->equals(['mailpoet-phoenix-test@mailinator.com' => 'Recipient']);
|
->equals(['blackhole@mailpoet.com' => 'Recipient']);
|
||||||
expect($message->getFrom())
|
expect($message->getFrom())
|
||||||
->equals([$this->sender['from_email'] => $this->sender['from_name']]);
|
->equals([$this->sender['from_email'] => $this->sender['from_name']]);
|
||||||
expect($message->getSender())
|
expect($message->getSender())
|
||||||
|
@@ -47,7 +47,7 @@ class MailPoetAPITest extends \MailPoetTest {
|
|||||||
new MailPoetMapper(),
|
new MailPoetMapper(),
|
||||||
$this->makeEmpty(AuthorizedEmailsController::class)
|
$this->makeEmpty(AuthorizedEmailsController::class)
|
||||||
);
|
);
|
||||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||||
$this->newsletter = [
|
$this->newsletter = [
|
||||||
'subject' => 'testing MailPoet … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
'subject' => 'testing MailPoet … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||||
'body' => [
|
'body' => [
|
||||||
|
@@ -37,7 +37,7 @@ class PHPMailTest extends \MailPoetTest {
|
|||||||
$this->returnPath,
|
$this->returnPath,
|
||||||
new PHPMailMapper()
|
new PHPMailMapper()
|
||||||
);
|
);
|
||||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||||
$this->newsletter = [
|
$this->newsletter = [
|
||||||
'subject' => 'testing local method (PHP mail) … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
'subject' => 'testing local method (PHP mail) … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||||
'body' => [
|
'body' => [
|
||||||
@@ -75,13 +75,13 @@ class PHPMailTest extends \MailPoetTest {
|
|||||||
expect($mailer->getToAddresses())->equals(
|
expect($mailer->getToAddresses())->equals(
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
'mailpoet-phoenix-test@mailinator.com',
|
'blackhole@mailpoet.com',
|
||||||
'Recipient',
|
'Recipient',
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
expect($mailer->getAllRecipientAddresses())
|
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->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->FromName)->equals($this->sender['from_name']); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
|
||||||
expect($mailer->getReplyToAddresses())->equals(
|
expect($mailer->getReplyToAddresses())->equals(
|
||||||
|
@@ -60,7 +60,7 @@ class SMTPTest extends \MailPoetTest {
|
|||||||
$this->settings['login'],
|
$this->settings['login'],
|
||||||
$this->settings['password']
|
$this->settings['password']
|
||||||
);
|
);
|
||||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||||
$this->newsletter = [
|
$this->newsletter = [
|
||||||
'subject' => 'testing SMTP … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
'subject' => 'testing SMTP … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||||
'body' => [
|
'body' => [
|
||||||
@@ -107,7 +107,7 @@ class SMTPTest extends \MailPoetTest {
|
|||||||
$message = $this->mailer
|
$message = $this->mailer
|
||||||
->createMessage($this->newsletter, $this->subscriber, $this->extraParams);
|
->createMessage($this->newsletter, $this->subscriber, $this->extraParams);
|
||||||
expect($message->getTo())
|
expect($message->getTo())
|
||||||
->equals(['mailpoet-phoenix-test@mailinator.com' => 'Recipient']);
|
->equals(['blackhole@mailpoet.com' => 'Recipient']);
|
||||||
expect($message->getFrom())
|
expect($message->getFrom())
|
||||||
->equals([$this->sender['from_email'] => $this->sender['from_name']]);
|
->equals([$this->sender['from_email'] => $this->sender['from_name']]);
|
||||||
expect($message->getSender())
|
expect($message->getSender())
|
||||||
|
@@ -42,7 +42,7 @@ class SendGridTest extends \MailPoetTest {
|
|||||||
$this->replyTo,
|
$this->replyTo,
|
||||||
new SendGridMapper()
|
new SendGridMapper()
|
||||||
);
|
);
|
||||||
$this->subscriber = 'Recipient <mailpoet-phoenix-test@mailinator.com>';
|
$this->subscriber = 'Recipient <blackhole@mailpoet.com>';
|
||||||
$this->newsletter = [
|
$this->newsletter = [
|
||||||
'subject' => 'testing SendGrid … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
'subject' => 'testing SendGrid … © & ěščřžýáíéůėꀿąß∂ 😊👨👩👧👧', // try some special chars
|
||||||
'body' => [
|
'body' => [
|
||||||
|
Reference in New Issue
Block a user