Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 266cac2

Browse files
committed
Add test for checking content type
1 parent 4c3e323 commit 266cac2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/MailTrackingTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,19 @@ public function it_checks_email_cc_address()
156156
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailCc', ['cc@domain.tld']));
157157
}
158158

159+
/**
160+
* @test
161+
* @group unit
162+
*/
163+
public function it_checks_email_content_type()
164+
{
165+
$message = $this->makeMessage();
166+
$message->setContentType('text/html');
167+
$this->mail_tracking->recordMail($message);
168+
169+
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailContentTypeEquals', ['text/html']));
170+
}
171+
159172
/**
160173
* @test
161174
* @group unit

0 commit comments

Comments
 (0)