Merge pull request #9712 from nextcloud/backport/9711/stable13
[stable13] Fix the unit tests
This commit is contained in:
commit
52b3582250
|
@ -27,6 +27,7 @@ namespace OCA\DAV\Tests\unit\CalDAV;
|
|||
|
||||
use OCA\DAV\CalDAV\CalDavBackend;
|
||||
use OCA\DAV\Connector\Sabre\Principal;
|
||||
use OCP\IConfig;
|
||||
use OCP\IGroupManager;
|
||||
use OCP\ILogger;
|
||||
use OCP\IUserManager;
|
||||
|
@ -80,6 +81,7 @@ abstract class AbstractCalDavBackend extends TestCase {
|
|||
$this->groupManager,
|
||||
$this->createMock(ShareManager::class),
|
||||
$this->createMock(IUserSession::class),
|
||||
$this->createMock(IConfig::class),
|
||||
])
|
||||
->setMethods(['getPrincipalByPath', 'getGroupMembership'])
|
||||
->getMock();
|
||||
|
|
|
@ -36,6 +36,7 @@ use OCA\DAV\CardDAV\AddressBook;
|
|||
use OCA\DAV\CardDAV\CardDavBackend;
|
||||
use OCA\DAV\Connector\Sabre\Principal;
|
||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\IConfig;
|
||||
use OCP\IDBConnection;
|
||||
use OCP\IGroupManager;
|
||||
use OCP\IL10N;
|
||||
|
@ -97,6 +98,7 @@ class CardDavBackendTest extends TestCase {
|
|||
$this->groupManager,
|
||||
$this->createMock(ShareManager::class),
|
||||
$this->createMock(IUserSession::class),
|
||||
$this->createMock(IConfig::class),
|
||||
])
|
||||
->setMethods(['getPrincipalByPath', 'getGroupMembership'])
|
||||
->getMock();
|
||||
|
|
Loading…
Reference in New Issue