From ee014bddbdb6d60d78cfdceadfe574197b078a4d Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 23 Mar 2017 16:10:53 +0100 Subject: fix tests calling getAbsoluteBundlePath() in the constructor makes other tests fail Signed-off-by: Bjoern Schiessle --- apps/dav/tests/unit/CardDAV/SyncServiceTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/dav/tests') diff --git a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php index de4e8ead4c0..c06e4857743 100644 --- a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php +++ b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php @@ -179,7 +179,7 @@ class SyncServiceTest extends TestCase { $accountManager = $this->getMockBuilder('OC\Accounts\AccountManager')->disableOriginalConstructor()->getMock(); /** @var SyncService | \PHPUnit_Framework_MockObject_MockObject $ss */ $ss = $this->getMockBuilder(SyncService::class) - ->setMethods(['ensureSystemAddressBookExists', 'requestSyncReport', 'download']) + ->setMethods(['ensureSystemAddressBookExists', 'requestSyncReport', 'download', 'getCertPath']) ->setConstructorArgs([$backend, $userManager, $logger, $accountManager]) ->getMock(); $ss->method('requestSyncReport')->withAnyParameters()->willReturn(['response' => $response, 'token' => 'sync-token-1']); @@ -189,6 +189,7 @@ class SyncServiceTest extends TestCase { 'statusCode' => 200, 'headers' => [] ]); + $ss->method('getCertPath')->willReturn(''); return $ss; } -- cgit v1.2.3