diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-23 16:59:05 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-03-26 13:07:08 +0100 |
commit | 5d14fd4396b54134ce04809a10f46b084107003b (patch) | |
tree | d13be389d77eda88e420c954da65890f50d74c48 /apps/settings/tests | |
parent | 278a73789e777d2ba00fb7d8b311923a590f10fc (diff) | |
download | nextcloud-server-5d14fd4396b54134ce04809a10f46b084107003b.tar.gz nextcloud-server-5d14fd4396b54134ce04809a10f46b084107003b.zip |
Make extra user profile fields always editable
The fields for phone number, address, website and twitter are now
editable regardless whether federated sharing and the lookup server
are enabled or not.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/settings/tests')
-rw-r--r-- | apps/settings/tests/Controller/UsersControllerTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/settings/tests/Controller/UsersControllerTest.php b/apps/settings/tests/Controller/UsersControllerTest.php index 2daf383410e..f9652053de8 100644 --- a/apps/settings/tests/Controller/UsersControllerTest.php +++ b/apps/settings/tests/Controller/UsersControllerTest.php @@ -190,6 +190,7 @@ class UsersControllerTest extends \Test\TestCase { public function testSetUserSettings($email, $validEmail, $expectedStatus) { $controller = $this->getController(false, ['saveUserSettings']); $user = $this->createMock(IUser::class); + $user->method('getUID')->willReturn('johndoe'); $this->userSession->method('getUser')->willReturn($user); |