Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-03-17 21:06:38 +0300
committerChristopher Ng <chrng8@gmail.com>2022-03-18 05:55:12 +0300
commit108abd77ed0ee29bca4019f6a212ba1b2bdad5e7 (patch)
tree3c2d3f2382b83eb93cae4f974d20bbbbe2b9789b /tests
parent1fc0b4320c8921ad59bf4d41a88bf9936e1f653d (diff)
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.php6
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,