]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix SynserviceTest
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 22 Nov 2019 11:32:35 +0000 (12:32 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 27 Nov 2019 12:34:42 +0000 (13:34 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/dav/tests/unit/CardDAV/SyncServiceTest.php

index 7d444571fac8c3823a8e2d846782bc8f338a84ef..241f7a3e10c8dabdf0793e40d58de781d601e963 100644 (file)
@@ -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();