diff options
author | icewind1991 <robin@icewind.nl> | 2014-01-02 05:04:27 -0800 |
---|---|---|
committer | icewind1991 <robin@icewind.nl> | 2014-01-02 05:04:27 -0800 |
commit | 14e0b1b6d1b64c2e37bbba0731a8f7b9a338ebb0 (patch) | |
tree | 9b46c5f4f7eae4b6ed5a6c6cd3211bbfd45ad613 /tests/lib | |
parent | 095f9b8ee047f4bf7b51d5adfcbb74c4d5c713d5 (diff) | |
parent | 0ed1b64673144488bd21e25d92bac89126e6d4f9 (diff) | |
download | nextcloud-server-14e0b1b6d1b64c2e37bbba0731a8f7b9a338ebb0.tar.gz nextcloud-server-14e0b1b6d1b64c2e37bbba0731a8f7b9a338ebb0.zip |
Merge pull request #6513 from owncloud/user-no-change-displayname
Re-add the config options to remove the ability for users to change their displayname
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/user/user.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/user/user.php b/tests/lib/user/user.php index 0bbcda013ce..3f90432c6b0 100644 --- a/tests/lib/user/user.php +++ b/tests/lib/user/user.php @@ -9,6 +9,7 @@ namespace Test\User; +use OC\AllConfig; use OC\Hooks\PublicEmitter; class User extends \PHPUnit_Framework_TestCase { @@ -205,7 +206,9 @@ class User extends \PHPUnit_Framework_TestCase { ->method('implementsActions') ->will($this->returnValue(false)); - $user = new \OC\User\User('foo', $backend); + $allConfig = new AllConfig(); + + $user = new \OC\User\User('foo', $backend, null, $allConfig); $this->assertEquals(\OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/foo', $user->getHome()); } |