diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-02 09:50:35 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-05 11:06:51 +0300 |
commit | 0c500e460ffeb41ca5100aa946f8f308b83a4040 (patch) | |
tree | 2b72c4f12e36462ede122ac17aa33870893b413f /tests/lib/Mail/MessageTest.php | |
parent | 0cef93829998fd6d5879f91fb34639a5a193365c (diff) |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Mail/MessageTest.php')
-rw-r--r-- | tests/lib/Mail/MessageTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Mail/MessageTest.php b/tests/lib/Mail/MessageTest.php index 691168ce24c..78fd5f1bb8b 100644 --- a/tests/lib/Mail/MessageTest.php +++ b/tests/lib/Mail/MessageTest.php @@ -30,7 +30,7 @@ class MessageTest extends TestCase { ); } - function setUp() { + public function setUp() { parent::setUp(); $this->swiftMessage = $this->getMockBuilder('\Swift_Message') @@ -79,9 +79,9 @@ class MessageTest extends TestCase { $this->swiftMessage ->expects($this->once()) ->method('getReplyTo') - ->will($this->returnValue(['lukas@owncloud.com'])); + ->willReturn('lukas@owncloud.com'); - $this->assertSame(['lukas@owncloud.com'], $this->message->getReplyTo()); + $this->assertSame('lukas@owncloud.com', $this->message->getReplyTo()); } public function testSetTo() { |