Skip to content

Commit

Permalink
Remove domain-specific references
Browse files Browse the repository at this point in the history
These were originally used because it was a fairly generic email that I
had at the time, while writing the tests. However, as per @MWOP's
suggestion, it should be more generic (and not preference a given,
commercial, email provider).

Signed-off-by: Matthew Setter <matthew@matthewsetter.com>
  • Loading branch information
settermjd committed Nov 23, 2023
1 parent 06f3ab8 commit f67b0c0
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions test/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,7 @@ public function testDecodeMultipartMimeMessageWithMessagePartAlternatives()
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">This is a test email with 1 attachment.<br clear=3D"all"><=
div><br></div>-- <br><div class=3D"gmail_signature" data-smartmail=3D"gmail=
_signature"><div dir=3D"ltr"><img src=3D"https://sendgrid.com/brand/sg-logo=
-email.png" width=3D"96" height=3D"17"><br><div><br></div></div></div>
</div>
<div>This is a test email with 1 attachment.</div>
--001a11447dc881e40b0537fe6d58--
Expand Down Expand Up @@ -380,10 +376,7 @@ public function testDecodeMultipartMimeMessageWithMessagePartAlternatives()
$this->assertTrue($headers->has('Content-Transfer-Encoding'));
$this->assertSame("quoted-printable", $headers->get('Content-Transfer-Encoding')->getFieldValue());

$htmlBody = <<<EOF
<div dir="ltr">This is a test email with 1 attachment.<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><img src="https://sendgrid.com/brand/sg-logo-email.png" width="96" height="17"><br><div><br></div></div></div>
</div>
EOF;
$htmlBody = "<div>This is a test email with 1 attachment.</div>";
$this->assertSame($htmlBody, trim($htmlPart->getRawContent()));

$this->assertInstanceOf(Part::class, $parts[1]);
Expand Down

0 comments on commit f67b0c0

Please sign in to comment.