diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-17 18:06:38 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-25 03:53:54 +0000 |
commit | d8c04464aa83d4c22a1ca8d0aa8ffb34e4febb1e (patch) | |
tree | 4cb28f2bd5572fc97427fd255d7c353d1a9a856e /tests | |
parent | 8bef2ec925824e9e788c1886fe8ea14322f15e9e (diff) | |
download | nextcloud-server-d8c04464aa83d4c22a1ca8d0aa8ffb34e4febb1e.tar.gz nextcloud-server-d8c04464aa83d4c22a1ca8d0aa8ffb34e4febb1e.zip |
Add profile default setting for admin
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 108abd77ed0ee29bca4019f6a212ba1b2bdad5e7)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Accounts/AccountManagerTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/Accounts/AccountManagerTest.php b/tests/lib/Accounts/AccountManagerTest.php index 18419d73423..9d54ef36c80 100644 --- a/tests/lib/Accounts/AccountManagerTest.php +++ b/tests/lib/Accounts/AccountManagerTest.php @@ -511,6 +511,12 @@ class AccountManagerTest extends TestCase { public function testAddMissingDefaults() { $user = $this->createMock(IUser::class); + $this->config + ->expects($this->once()) + ->method('getAppValue') + ->with('settings', 'profile_enabled_by_default', '1') + ->willReturn('1'); + $input = [ [ 'name' => IAccountManager::PROPERTY_DISPLAYNAME, |