diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-17 18:06:38 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-18 02:55:12 +0000 |
commit | 108abd77ed0ee29bca4019f6a212ba1b2bdad5e7 (patch) | |
tree | 3c2d3f2382b83eb93cae4f974d20bbbbe2b9789b /tests | |
parent | 1fc0b4320c8921ad59bf4d41a88bf9936e1f653d (diff) | |
download | nextcloud-server-108abd77ed0ee29bca4019f6a212ba1b2bdad5e7.tar.gz nextcloud-server-108abd77ed0ee29bca4019f6a212ba1b2bdad5e7.zip |
Add profile default setting for admin
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, |