summaryrefslogtreecommitdiffstats
path: root/tests/lib/user
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-18 20:27:43 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-20 14:57:20 +0100
commitaeb89947a2bddb1db10426538afaccdc141c059e (patch)
tree4cd9bada02f0c7d4c944d5b83160f2d8e2bf831b /tests/lib/user
parentdd733d89256e0a2d1f7f4f96ac46b5a7bfbff984 (diff)
downloadnextcloud-server-aeb89947a2bddb1db10426538afaccdc141c059e.tar.gz
nextcloud-server-aeb89947a2bddb1db10426538afaccdc141c059e.zip
Introduce IUser::setEMailAddress and add hook mechanism
Diffstat (limited to 'tests/lib/user')
-rw-r--r--tests/lib/user/user.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/user/user.php b/tests/lib/user/user.php
index 1f613edc4e6..a8d688d9c88 100644
--- a/tests/lib/user/user.php
+++ b/tests/lib/user/user.php
@@ -342,7 +342,8 @@ class User extends \Test\TestCase {
$backend->expects($this->once())
->method('setDisplayName')
- ->with('foo','Foo');
+ ->with('foo','Foo')
+ ->willReturn(true);
$user = new \OC\User\User('foo', $backend);
$this->assertTrue($user->setDisplayName('Foo'));