aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/Controller/CheckSetupControllerTest.php
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-08-17 10:19:10 +0200
committerDaniel <mail@danielkesselberg.de>2023-08-26 17:21:50 +0200
commit7f11ee8c4af3305ad2ecb90b1f400ee79b74c51c (patch)
tree05df07ea22b353b2490c6a6fb9118044b69e8b9d /apps/settings/tests/Controller/CheckSetupControllerTest.php
parentefeb517eddc7f29857a5d633b5a00655c74f2465 (diff)
downloadnextcloud-server-7f11ee8c4af3305ad2ecb90b1f400ee79b74c51c.tar.gz
nextcloud-server-7f11ee8c4af3305ad2ecb90b1f400ee79b74c51c.zip
fix(CardDAV): only run upgrade sync if 1000 users or less
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/settings/tests/Controller/CheckSetupControllerTest.php')
-rw-r--r--apps/settings/tests/Controller/CheckSetupControllerTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php
index d4af6bd603c..21d7f10723a 100644
--- a/apps/settings/tests/Controller/CheckSetupControllerTest.php
+++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php
@@ -92,6 +92,7 @@ class CheckSetupControllerTest extends TestCase {
private $dispatcher;
/** @var Connection|\PHPUnit\Framework\MockObject\MockObject */
private $db;
+ private IThrottler $throttler;
/** @var ILockingProvider|\PHPUnit\Framework\MockObject\MockObject */
private $lockingProvider;
/** @var IDateTimeFormatter|\PHPUnit\Framework\MockObject\MockObject */
@@ -435,6 +436,7 @@ class CheckSetupControllerTest extends TestCase {
->willReturnMap([
['files_external', 'user_certificate_scan', '', '["a", "b"]'],
['core', 'cronErrors', '', ''],
+ ['dav', 'needs_system_address_book_sync', 'no', 'no'],
]);
$this->config->expects($this->any())
->method('getSystemValue')
@@ -662,6 +664,7 @@ class CheckSetupControllerTest extends TestCase {
'isFairUseOfFreePushService' => false,
'temporaryDirectoryWritable' => false,
\OCA\Settings\SetupChecks\LdapInvalidUuids::class => ['pass' => true, 'description' => 'Invalid UUIDs of LDAP users or groups have been found. Please review your "Override UUID detection" settings in the Expert part of the LDAP configuration and use "occ ldap:update-uuid" to update them.', 'severity' => 'warning'],
+ \OCA\Settings\SetupChecks\NeedsSystemAddressBookSync::class => ['pass' => true, 'description' => 'The DAV system address book sync has not run yet as your instance has more than 1000 users or because an error occured. Please run it manually by calling occ dav:sync-system-addressbook.', 'severity' => 'warning'],
'isBruteforceThrottled' => false,
'bruteforceRemoteAddress' => '',
]