|
|
@@ -96,6 +96,7 @@ class EmailTraitTest extends TestCase
|
|
|
$this->assertMailSentWith('cc@example.com', 'cc');
|
|
|
$this->assertMailSentWith('bcc@example.com', 'bcc');
|
|
|
$this->assertMailSentWith('cc2@example.com', 'cc');
|
|
|
+ $this->assertMailSentWith('replyto@example.com', 'replyTo');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -122,6 +123,7 @@ class EmailTraitTest extends TestCase
|
|
|
$this->assertMailContainsAt(1, 'html');
|
|
|
|
|
|
$this->assertMailSentWithAt(0, 'Hello world', 'subject');
|
|
|
+ $this->assertMailSentWithAt(0, 'replyto@example.com', 'replyTo');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -232,6 +234,7 @@ class EmailTraitTest extends TestCase
|
|
|
(new Mailer())
|
|
|
->setTo(['to@example.com' => 'Foo Bar'])
|
|
|
->addTo('alsoto@example.com')
|
|
|
+ ->setReplyTo(['replyto@example.com' => 'Reply to me'])
|
|
|
->setCc('cc@example.com')
|
|
|
->setBcc(['bcc@example.com' => 'Baz Qux'])
|
|
|
->setSubject('Hello world')
|