0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

Fix test order

This commit is contained in:
Marcus Bointon 2022-03-08 22:39:06 +01:00
parent a3028ab03b
commit 76b348ebac
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24

View File

@ -815,9 +815,9 @@ EOT;
$this->Mail->Subject .= ': BCC-only addressing';
$this->buildBody();
$this->Mail->clearAllRecipients();
self::assertTrue($this->Mail->addBCC('a@example.com'), 'BCC addressing failed');
$this->Mail->preSend();
$b = $this->Mail->getSentMIMEMessage();
self::assertTrue($this->Mail->addBCC('a@example.com'), 'BCC addressing failed');
self::assertStringNotContainsString('a@example.com', $b);
self::assertTrue($this->Mail->send(), 'send failed');
}