From 2723a83d3261bce9645727b9dc1048e98db1dd81 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 12 Jul 2021 02:09:27 +0200 Subject: [PATCH] MailTransportTest: remove reply-to addressing testing 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`. --- test/PHPMailer/MailTransportTest.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/PHPMailer/MailTransportTest.php b/test/PHPMailer/MailTransportTest.php index 27d499f6..52a49a59 100644 --- a/test/PHPMailer/MailTransportTest.php +++ b/test/PHPMailer/MailTransportTest.php @@ -81,16 +81,10 @@ final class MailTransportTest extends SendTestCase $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'],