Skip to content
Snippets Groups Projects
Unverified Commit 38c38eec authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

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

Fix the master unit tests
parents f5e16dfa 3ca15255
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ namespace OCA\DAV\Tests\unit\CalDAV; ...@@ -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 { ...@@ -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();
......
...@@ -36,6 +36,7 @@ use OCA\DAV\CardDAV\AddressBook; ...@@ -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 { ...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment