Update PHPMailerTest.php

This commit is contained in:
Mariusz Krzaczkowski 2025-10-02 10:27:01 +02:00 committed by GitHub
parent b135f4f284
commit 512e26bffc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -618,6 +618,9 @@ EOT;
*/ */
public function testEmbeddedImageCustomCidDomain() public function testEmbeddedImageCustomCidDomain()
{ {
$result = $this->Mail->setFrom('overruled@example.com');
self::assertTrue($result, 'setFrom failed');
$this->Mail->msgHTML('<!DOCTYPE html> $this->Mail->msgHTML('<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -627,7 +630,7 @@ EOT;
<body> <body>
<p><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="></p> <p><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="></p>
</body> </body>
</html>', '', false, '@example.com'); </html>', '', false);
$this->Mail->preSend(); $this->Mail->preSend();
self::assertStringContainsString( self::assertStringContainsString(
'Content-ID: <bb229a48bee31f5d54ca12dc9bd960c6@example.com>', 'Content-ID: <bb229a48bee31f5d54ca12dc9bd960c6@example.com>',