Updated main domain for tests

This commit is contained in:
Will Browning 2019-07-05 17:25:15 +01:00
parent 2bf682d885
commit 8f30725cc4
12 changed files with 44 additions and 44 deletions

View file

@ -41,10 +41,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay@johndoe.anonaddy.me'],
'--recipient' => ['ebay@johndoe.anonaddy.com'],
'--local_part' => ['ebay'],
'--extension' => [''],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -82,10 +82,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_with_attachment.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['attachment@johndoe.anonaddy.me'],
'--recipient' => ['attachment@johndoe.anonaddy.com'],
'--local_part' => ['attachment'],
'--extension' => [''],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -121,10 +121,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_multiple_recipients.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay@johndoe.anonaddy.me', 'amazon@johndoe.anonaddy.me', 'paypal@johndoe.anonaddy.me'],
'--recipient' => ['ebay@johndoe.anonaddy.com', 'amazon@johndoe.anonaddy.com', 'paypal@johndoe.anonaddy.me'],
'--local_part' => ['ebay', 'amazon', 'paypal'],
'--extension' => ['', '', ''],
'--domain' => ['johndoe.anonaddy.me', 'johndoe.anonaddy.me', 'johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com', 'johndoe.anonaddy.com', 'johndoe.anonaddy.com'],
'--size' => '1217'
]
)->assertExitCode(0);
@ -174,10 +174,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_with_extension.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay+a@johndoe.anonaddy.me'],
'--recipient' => ['ebay+a@johndoe.anonaddy.com'],
'--local_part' => ['ebay'],
'--extension' => ['a'],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '789'
]
)->assertExitCode(0);
@ -222,10 +222,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay@johndoe.anonaddy.me'],
'--recipient' => ['ebay@johndoe.anonaddy.com'],
'--local_part' => ['ebay'],
'--extension' => [''],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '559'
]
)->assertExitCode(0);
@ -286,10 +286,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay@johndoe.anonaddy.me'],
'--recipient' => ['ebay@johndoe.anonaddy.com'],
'--local_part' => ['ebay'],
'--extension' => [''],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '444'
]
)->assertExitCode(0);
@ -327,10 +327,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay@johndoe.anonaddy.me'],
'--recipient' => ['ebay@johndoe.anonaddy.com'],
'--local_part' => ['ebay'],
'--extension' => [''],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -381,10 +381,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_unsubscribe.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.me'],
'--recipient' => ['8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.com'],
'--local_part' => ['8f36380f-df4e-4875-bb12-9c4448573712'],
'--extension' => [''],
'--domain' => ['unsubscribe.anonaddy.me'],
'--domain' => ['unsubscribe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -438,10 +438,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_unsubscribe_plus_other_recipient.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.me', 'another@johndoe.anonaddy.me'],
'--recipient' => ['8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.com', 'another@johndoe.anonaddy.com'],
'--local_part' => ['8f36380f-df4e-4875-bb12-9c4448573712', 'another'],
'--extension' => ['', ''],
'--domain' => ['unsubscribe.anonaddy.me', 'johndoe.anonaddy.me'],
'--domain' => ['unsubscribe.anonaddy.com', 'johndoe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -497,10 +497,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_unsubscribe.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.me'],
'--recipient' => ['8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.com'],
'--local_part' => ['8f36380f-df4e-4875-bb12-9c4448573712'],
'--extension' => [''],
'--domain' => ['unsubscribe.anonaddy.me'],
'--domain' => ['unsubscribe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -545,9 +545,9 @@ class ReceiveEmailTest extends TestCase
)->assertExitCode(0);
$this->assertDatabaseHas('aliases', [
'email' => 'ebay@'.config('anonaddy.domain'),
'email' => 'ebay@anonaddy.me',
'local_part' => 'ebay',
'domain' => config('anonaddy.domain'),
'domain' => 'anonaddy.me',
'emails_forwarded' => 1,
'emails_blocked' => 0
]);
@ -622,10 +622,10 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay@johndoe.anonaddy.me'],
'--recipient' => ['ebay@johndoe.anonaddy.com'],
'--local_part' => ['ebay'],
'--extension' => [''],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -663,18 +663,18 @@ class ReceiveEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_other_domain.eml'),
'--sender' => 'will@anonaddy.com',
'--recipient' => ['ebay@johndoe.anonaddy.com'],
'--recipient' => ['ebay@johndoe.anonaddy.me'],
'--local_part' => ['ebay'],
'--extension' => [''],
'--domain' => ['johndoe.anonaddy.com'],
'--domain' => ['johndoe.anonaddy.me'],
'--size' => '1000'
]
)->assertExitCode(0);
$this->assertDatabaseHas('aliases', [
'email' => 'ebay@johndoe.anonaddy.com',
'email' => 'ebay@johndoe.anonaddy.me',
'local_part' => 'ebay',
'domain' => 'johndoe.anonaddy.com',
'domain' => 'johndoe.anonaddy.me',
'emails_forwarded' => 1,
'emails_blocked' => 0
]);

View file

@ -44,10 +44,10 @@ class ReplyToEmailTest extends TestCase
[
'file' => base_path('tests/emails/email_reply.eml'),
'--sender' => $this->user->defaultRecipient->email,
'--recipient' => ['ebay+'.$extension.'@johndoe.anonaddy.me'],
'--recipient' => ['ebay+'.$extension.'@johndoe.anonaddy.com'],
'--local_part' => ['ebay'],
'--extension' => [$extension],
'--domain' => ['johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);
@ -90,12 +90,12 @@ class ReplyToEmailTest extends TestCase
'file' => base_path('tests/emails/email_multiple_reply.eml'),
'--sender' => $this->user->defaultRecipient->email,
'--recipient' => [
'ebay+'.$extension1.'@johndoe.anonaddy.me',
'ebay+'.$extension2.'@johndoe.anonaddy.me'
'ebay+'.$extension1.'@johndoe.anonaddy.com',
'ebay+'.$extension2.'@johndoe.anonaddy.com'
],
'--local_part' => ['ebay', 'ebay'],
'--extension' => [$extension1, $extension2],
'--domain' => ['johndoe.anonaddy.me', 'johndoe.anonaddy.me'],
'--domain' => ['johndoe.anonaddy.com', 'johndoe.anonaddy.com'],
'--size' => '1000'
]
)->assertExitCode(0);

View file

@ -17,8 +17,8 @@ abstract class TestCase extends BaseTestCase
config([
'anonaddy.limit' => 1000,
'anonaddy.domain' => 'anonaddy.me',
'anonaddy.all_domains' => ['anonaddy.me','anonaddy.com']
'anonaddy.domain' => 'anonaddy.com',
'anonaddy.all_domains' => ['anonaddy.com','anonaddy.me']
]);
//$this->withoutExceptionHandling();

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: <ebay@johndoe.anonaddy.me>
To: <ebay@johndoe.anonaddy.com>
Subject: Test Email
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: <ebay@johndoe.anonaddy.me>, <amazon@johndoe.anonaddy.me>, <paypal@johndoe.anonaddy.me>
To: <ebay@johndoe.anonaddy.com>, <amazon@johndoe.anonaddy.com>, <paypal@johndoe.anonaddy.com>
Subject: Test Email
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: contact@ebay.com <ebay+b2498b76d8686bf4f48d034fbada4de6f585e2aa@johndoe.anonaddy.me>, support@ebay.com <ebay+bb40a1982731e55199e8598ebff678f3ef6c2951@johndoe.anonaddy.me>
To: contact@ebay.com <ebay+b2498b76d8686bf4f48d034fbada4de6f585e2aa@johndoe.anonaddy.com>, support@ebay.com <ebay+bb40a1982731e55199e8598ebff678f3ef6c2951@johndoe.anonaddy.com>
Subject: RE: Test Email
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: <ebay@johndoe.anonaddy.com>
To: <ebay@johndoe.anonaddy.me>
Subject: Test Email
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: contact@ebay.com <ebay+b2498b76d8686bf4f48d034fbada4de6f585e2aa@johndoe.anonaddy.me>
To: contact@ebay.com <ebay+b2498b76d8686bf4f48d034fbada4de6f585e2aa@johndoe.anonaddy.com>
Subject: RE: Test Email
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: <8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.me>
To: <8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.com>
Subject: Unsubscribe
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: <8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.me>, <another@johndoe.anonaddy.me>
To: <8f36380f-df4e-4875-bb12-9c4448573712@unsubscribe.anonaddy.com>, <another@johndoe.anonaddy.com>
Subject: Unsubscribe
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: attachment@johndoe.anonaddy.me
To: attachment@johndoe.anonaddy.com
Subject: With Attachment
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"

View file

@ -1,6 +1,6 @@
Date: Wed, 20 Feb 2019 15:00:00 +0100 (CET)
From: Will <will@anonaddy.com>
To: <ebay+a@johndoe.anonaddy.me>
To: <ebay+a@johndoe.anonaddy.com>
Subject: Test Email
Content-Type: multipart/mixed; boundary="----=_Part_10031_1199410393.1550677940425"