diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-04-12 22:30:35 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-04-12 22:30:35 +0200 |
commit | 84041a4fa26ce7a0d8cbd50aa1728ab791b7e67a (patch) | |
tree | 7292b2138cc2fefde948136de2a37b0ceca2c8a6 /tests/lib/mail/message.php | |
parent | 907719200f844fc25ee5c5bbd93debcc9215b4a0 (diff) | |
parent | e3ad99d2523e8614b6d84765fc16104b86e9730a (diff) | |
download | nextcloud-server-84041a4fa26ce7a0d8cbd50aa1728ab791b7e67a.tar.gz nextcloud-server-84041a4fa26ce7a0d8cbd50aa1728ab791b7e67a.zip |
Merge pull request #15541 from owncloud/add-reply-to-support
Add "Reply-To" support for sharing mails as well as refactor code and add unit-tests
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()) |