diff options
Diffstat (limited to 'tests/lib/mail/message.php')
-rw-r--r-- | tests/lib/mail/message.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/mail/message.php b/tests/lib/mail/message.php index 0db2017d81e..c75cc18b650 100644 --- a/tests/lib/mail/message.php +++ b/tests/lib/mail/message.php @@ -62,6 +62,23 @@ class MessageTest extends TestCase { $this->assertSame(array('lukas@owncloud.com'), $this->message->getFrom()); } + public function testSetReplyTo() { + $this->swiftMessage + ->expects($this->once()) + ->method('setReplyTo') + ->with(['lukas@owncloud.com']); + $this->message->setReplyTo(['lukas@owncloud.com']); + } + + public function testGetReplyTo() { + $this->swiftMessage + ->expects($this->once()) + ->method('getReplyTo') + ->will($this->returnValue(['lukas@owncloud.com'])); + + $this->assertSame(['lukas@owncloud.com'], $this->message->getReplyTo()); + } + public function testSetTo() { $this->swiftMessage ->expects($this->once()) |