summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-22 12:32:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 13:34:42 +0100
commit9463e2cf61465442f2882bca17198f970e3cff87 (patch)
tree03638e90f44bac6339b6d94bc036f69ca1e724f7 /apps
parenta5b8473aa548ac85a01b82aafb05195498d3c566 (diff)
downloadnextcloud-server-9463e2cf61465442f2882bca17198f970e3cff87.tar.gz
nextcloud-server-9463e2cf61465442f2882bca17198f970e3cff87.zip
Fix SynserviceTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/CardDAV/SyncServiceTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
index 7d444571fac..241f7a3e10c 100644
--- a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
+++ b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
@@ -113,6 +113,10 @@ class SyncServiceTest extends TestCase {
'carddata' => "BEGIN:VCARD\r\nVERSION:3.0\r\nPRODID:-//Sabre//Sabre VObject 3.4.8//EN\r\nUID:test-user\r\nFN:test-user\r\nN:test-user;;;;\r\nEND:VCARD\r\n\r\n"
]);
+ $backend->method('getAddressBooksByUri')
+ ->with('principals/system/system', 'system')
+ ->willReturn(['id' => -1]);
+
/** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject $userManager */
$userManager = $this->getMockBuilder(IUserManager::class)->disableOriginalConstructor()->getMock();