Skip to content
Prev Previous commit
Next Next commit
fixup! feat(cardav): support result truncation for addressbook federa…
…tion

Signed-off-by: Hamza <[email protected]>
  • Loading branch information
hamza221 authored and kesselb committed Jul 16, 2025
commit 98472611e09100333d5153a646caba8af15c929a
1 change: 1 addition & 0 deletions apps/dav/appinfo/v1/carddav.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
Server::get(IUserManager::class),
Server::get(IEventDispatcher::class),
Server::get(\OCA\DAV\CardDAV\Sharing\Backend::class),
Server::get(IConfig::class),
);

$debugging = Server::get(IConfig::class)->getSystemValue('debug', false);
Expand Down
5 changes: 4 additions & 1 deletion apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class CardDavBackendTest extends TestCase {
private IUserManager&MockObject $userManager;
private IGroupManager&MockObject $groupManager;
private IEventDispatcher&MockObject $dispatcher;
private IConfig&MockObject $config;
private Backend $sharingBackend;
private IDBConnection $db;
private CardDavBackend $backend;
Expand Down Expand Up @@ -96,6 +97,7 @@ protected function setUp(): void {

$this->userManager = $this->createMock(IUserManager::class);
$this->groupManager = $this->createMock(IGroupManager::class);
$this->config = $this->createMock(IConfig::class);
$this->principal = $this->getMockBuilder(Principal::class)
->setConstructorArgs([
$this->userManager,
Expand All @@ -106,7 +108,7 @@ protected function setUp(): void {
$this->createMock(IAppManager::class),
$this->createMock(ProxyMapper::class),
$this->createMock(KnownUserService::class),
$this->createMock(IConfig::class),
$this->config,
$this->createMock(IFactory::class)
])
->onlyMethods(['getPrincipalByPath', 'getGroupMembership', 'findByUri'])
Expand Down Expand Up @@ -135,6 +137,7 @@ protected function setUp(): void {
$this->userManager,
$this->dispatcher,
$this->sharingBackend,
$this->config,
);
// start every test with a empty cards_properties and cards table
$query = $this->db->getQueryBuilder();
Expand Down