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

Commit db6b81c

Browse files
committed
Test for #8 to verify Reply To assertion
1 parent 1af2da0 commit db6b81c

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
@@ -192,6 +192,19 @@ public function it_checks_email_from_address()
192192
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailFrom', ['from@domain.tld']));
193193
}
194194

195+
/**
196+
* @test
197+
* @group unit
198+
*/
199+
public function it_checks_email_reply_to_address()
200+
{
201+
$message = $this->makeMessage();
202+
$message->setReplyTo('replyto@domain.tld');
203+
$this->mail_tracking->recordMail($message);
204+
205+
$this->assertEquals($this->mail_tracking, $this->callProtectedMethod('seeEmailReplyTo', ['replyto@domain.tld']));
206+
}
207+
195208
/**
196209
* @test
197210
* @group unit

0 commit comments

Comments
 (0)