Skip to content

Commit

Permalink
MailTransportTest: remove reply-to addressing testing
Browse files Browse the repository at this point in the history
As noted in 2380, the addressing tests do not belong in the mail transport tests and as the `ReplyToGetSetClearTest` now covers this extensively, the assertions can be removed from the `MailTransportTest`.
  • Loading branch information
jrfnl committed Jul 12, 2021
1 parent 4fa30cd commit 2723a83
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/PHPMailer/MailTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,10 @@ public function testMailSend()
$this->setAddress('testmailsend@example.com', 'totest');
$this->setAddress('cctestmailsend@example.com', 'cctest', $sType = 'cc');
$this->setAddress('bcctestmailsend@example.com', 'bcctest', $sType = 'bcc');
$this->setAddress('replytotestmailsend@example.com', 'replytotest', $sType = 'ReplyTo');

self::assertContains('testmailsend@example.com', $this->Mail->getToAddresses()[0], 'To address not found');
self::assertContains('cctestmailsend@example.com', $this->Mail->getCcAddresses()[0], 'CC address not found');
self::assertContains('bcctestmailsend@example.com', $this->Mail->getBccAddresses()[0], 'BCC address not found');
self::assertContains(
'replytotestmailsend@example.com',
$this->Mail->getReplyToAddresses()['replytotestmailsend@example.com'],
'Replyto address not found'
);

self::assertTrue(
$this->Mail->getAllRecipientAddresses()['testmailsend@example.com'],
Expand Down

0 comments on commit 2723a83

Please sign in to comment.