Merge pull request #9711 from nextcloud/fix/noid/fixmaster_unittests

Fix the master unit tests
This commit is contained in:
Morris Jobke 2018-06-01 14:10:42 +02:00 committed by GitHub
commit 38c38eec79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,7 @@ namespace OCA\DAV\Tests\unit\CalDAV;
use OCA\DAV\CalDAV\CalDavBackend; use OCA\DAV\CalDAV\CalDavBackend;
use OCA\DAV\Connector\Sabre\Principal; use OCA\DAV\Connector\Sabre\Principal;
use OCP\IConfig;
use OCP\IGroupManager; use OCP\IGroupManager;
use OCP\ILogger; use OCP\ILogger;
use OCP\IUserManager; use OCP\IUserManager;
@ -80,6 +81,7 @@ abstract class AbstractCalDavBackend extends TestCase {
$this->groupManager, $this->groupManager,
$this->createMock(ShareManager::class), $this->createMock(ShareManager::class),
$this->createMock(IUserSession::class), $this->createMock(IUserSession::class),
$this->createMock(IConfig::class),
]) ])
->setMethods(['getPrincipalByPath', 'getGroupMembership']) ->setMethods(['getPrincipalByPath', 'getGroupMembership'])
->getMock(); ->getMock();

View File

@ -36,6 +36,7 @@ use OCA\DAV\CardDAV\AddressBook;
use OCA\DAV\CardDAV\CardDavBackend; use OCA\DAV\CardDAV\CardDavBackend;
use OCA\DAV\Connector\Sabre\Principal; use OCA\DAV\Connector\Sabre\Principal;
use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IConfig;
use OCP\IDBConnection; use OCP\IDBConnection;
use OCP\IGroupManager; use OCP\IGroupManager;
use OCP\IL10N; use OCP\IL10N;
@ -97,6 +98,7 @@ class CardDavBackendTest extends TestCase {
$this->groupManager, $this->groupManager,
$this->createMock(ShareManager::class), $this->createMock(ShareManager::class),
$this->createMock(IUserSession::class), $this->createMock(IUserSession::class),
$this->createMock(IConfig::class),
]) ])
->setMethods(['getPrincipalByPath', 'getGroupMembership']) ->setMethods(['getPrincipalByPath', 'getGroupMembership'])
->getMock(); ->getMock();