Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
51d2289
Add trashbin migrator to export and import trashbin data
come-nc Mar 15, 2022
865ac4b
Rename $insert var to $qb
come-nc Mar 17, 2022
ee88887
Fixes the undefined index error with the DAV property getlastmodified
Maaxxs Mar 19, 2022
e0a5fe6
Fix typo.
Maaxxs Mar 20, 2022
53c731d
Rename PATH constants to show if folder or file
come-nc Mar 22, 2022
3a135f0
Set `mtime` to null instead of false if `getlastmodified` does not ex…
Maaxxs Mar 23, 2022
ecbcfca
Improve wording of output for trashbin migrator
come-nc Mar 24, 2022
6be7aa1
Migrate from ILogger to LoggerInterface in lib/private
come-nc Mar 17, 2022
eb961e4
Adapted Server to logger migration in constructors
come-nc Mar 17, 2022
ea23523
Adapt more code to migration to LoggerInterface
come-nc Mar 17, 2022
e8c1f75
Fixing psalm errors
come-nc Mar 21, 2022
61f7f13
Migrate from ILogger to LoggerInterface where needed in the tests
come-nc Mar 21, 2022
1809386
Fix codestyle
come-nc Mar 21, 2022
25e7374
Fix ILogger instances in application tests for core parameters
come-nc Mar 21, 2022
3546cfb
Fix more ILogger related problems from tests
come-nc Mar 21, 2022
f1febfe
Fix log level for exception in QueryBuilder
come-nc Mar 22, 2022
6d35459
Prepare for ILogger drop in RootCollectionTest
come-nc Mar 22, 2022
7fa8b2e
Add a guard to check that trashbin folder is a folder
come-nc Mar 24, 2022
c572286
Add oauth2_clients migration for Owncloud
artonge Dec 16, 2021
7dc3eb1
Use getLengthExpression to measure field length instead of like
come-nc Mar 24, 2022
efebbac
Add octetLength and charLength to function builder, and tests
come-nc Mar 24, 2022
bfd09a0
Avoid select with no FROM clause for Oracle in tests
come-nc Mar 24, 2022
25af856
Use OCTET_LENGTH which is more common than LENGTHB
come-nc Mar 24, 2022
e8122f2
show warning in update admin overview
szaimen Mar 11, 2022
7bcc183
Set max length to app token field to match backend
PVince81 Mar 25, 2022
de5af8e
invalidate mount cache after accepting or renaming federated share
icewind1991 Mar 25, 2022
13b7dfa
Merge pull request #31708 from nextcloud/enh/noid/apptoken-maxlength
Pytal Mar 25, 2022
5b42a64
Bump babel-loader from 8.2.3 to 8.2.4
dependabot[bot] Mar 26, 2022
08b72fe
Bump @testing-library/jest-dom from 5.16.2 to 5.16.3
dependabot[bot] Mar 26, 2022
ba1b20a
[tx-robot] updated from transifex
nextcloud-bot Mar 26, 2022
2e86f22
Merge pull request #31715 from nextcloud/dependabot/npm_and_yarn/babe…
dependabot[bot] Mar 26, 2022
b98824e
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 26, 2022
d715a22
Merge pull request #31722 from nextcloud/dependabot/npm_and_yarn/mini…
dependabot[bot] Mar 26, 2022
7407a32
Fix LENGTH function name across databases
come-nc Mar 27, 2022
53180f4
[tx-robot] updated from transifex
nextcloud-bot Mar 28, 2022
8038866
Add direct arg to login flow
PVince81 Jan 25, 2022
9db75db
Merge pull request #30276 from nextcloud/feature/add_oauth2_migration
artonge Mar 28, 2022
d116622
Bump @nextcloud/vue from 5.1.1 to 5.2.1
dependabot[bot] Mar 28, 2022
e72b82d
Merge pull request #31716 from nextcloud/dependabot/npm_and_yarn/next…
dependabot[bot] Mar 28, 2022
9509cb6
Bump jquery-migrate from 3.3.2 to 3.4.0
dependabot[bot] Mar 28, 2022
ee00656
migration generator also includes copyright section
blizzz Mar 28, 2022
427001b
Merge pull request #31717 from nextcloud/dependabot/npm_and_yarn/jque…
dependabot[bot] Mar 28, 2022
39494fb
Merge pull request #31718 from nextcloud/dependabot/npm_and_yarn/test…
artonge Mar 28, 2022
d31bc9f
Disable bulk upload by not advertising it
PVince81 Feb 14, 2022
e1e003f
Also comment out in test
nickvergessen Feb 15, 2022
4e11d7d
address reviews
szaimen Mar 25, 2022
8acefc9
Merge pull request #31537 from nextcloud/enh/31533/disable-webupdater…
szaimen Mar 28, 2022
2952c7d
Use the null coalescing operator to set the value of `size`.
Maaxxs Mar 28, 2022
c28a4c2
[tx-robot] updated from transifex
nextcloud-bot Mar 29, 2022
bdfc656
Merge pull request #31736 from nextcloud/bugfix/noid/disable-bulkupload
nickvergessen Mar 29, 2022
4a4f250
Merge pull request #31696 from nextcloud/fix/user_ldap-fix-migration-…
come-nc Mar 29, 2022
765999f
Merge pull request #31609 from nextcloud/fix/migrate-away-from-ilogger
come-nc Mar 29, 2022
262d22f
Merge pull request #31711 from nextcloud/mount-cache-external-share
PVince81 Mar 29, 2022
ae1a820
Fix user counts updates on user add/remove
Mar 7, 2022
7d2cb35
Merge pull request #31632 from Maaxxs/fix-undefined-index-dav
artonge Mar 29, 2022
93d0c60
Merge pull request #31697 from nextcloud/enh/27607/fix-user-count
artonge Mar 29, 2022
b984cd1
Merge pull request #31575 from nextcloud/enh/add-trashbin-migrator
come-nc Mar 29, 2022
9191ca4
Merge pull request #31735 from nextcloud/fix/noid/mig-generator-copyr…
come-nc Mar 29, 2022
576e4e8
Merge pull request #31592 from nextcloud/fix/direct-arg-flow-v2
PVince81 Mar 29, 2022
e4f1d41
Skip import of current calendar on error
Pytal Mar 24, 2022
cdb93e7
Show filename in output message
Pytal Mar 29, 2022
c57a001
Merge pull request #31690 from nextcloud/fix/throw-import-calendar-error
Pytal Mar 30, 2022
cf4c77e
[tx-robot] updated from transifex
nextcloud-bot Mar 30, 2022
86821dd
Increase check if support reactions
vitormattos Mar 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Migrate from ILogger to LoggerInterface where needed in the tests
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Mar 24, 2022
commit 61f7f13bd81948f6179bb8f70b6711c002ddd70e
6 changes: 3 additions & 3 deletions tests/Test/Repair/Owncloud/CleanPreviewsBackgroundJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OCP\ILogger;
use OCP\IUserManager;
use Psr\Log\LoggerInterface;
use Test\TestCase;

class CleanPreviewsBackgroundJobTest extends TestCase {
/** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
private $rootFolder;

/** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
/** @var LoggerInterface|\PHPUnit_Framework_MockObject_MockObject */
private $logger;

/** @var IJobList|\PHPUnit_Framework_MockObject_MockObject */
Expand All @@ -56,7 +56,7 @@ public function setUp(): void {
parent::setUp();

$this->rootFolder = $this->createMock(IRootFolder::class);
$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->jobList = $this->createMock(IJobList::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->userManager = $this->createMock(IUserManager::class);
Expand Down
14 changes: 7 additions & 7 deletions tests/lib/AppFramework/Routing/RoutingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use OC\AppFramework\Routing\RouteConfig;
use OC\Route\Route;
use OC\Route\Router;
use OCP\ILogger;
use OCP\Route\IRouter;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;

class RoutingTest extends \Test\TestCase {
public function testSimpleRoute() {
Expand Down Expand Up @@ -133,7 +133,7 @@ public function testSimpleRouteWithBrokenName() {
/** @var IRouter|MockObject $router */
$router = $this->getMockBuilder(Router::class)
->onlyMethods(['create'])
->setConstructorArgs([$this->createMock(ILogger::class)])
->setConstructorArgs([$this->createMock(LoggerInterface::class)])
->getMock();

// load route configuration
Expand All @@ -154,7 +154,7 @@ public function testSimpleOCSRouteWithBrokenName() {
/** @var IRouter|MockObject $router */
$router = $this->getMockBuilder(Router::class)
->onlyMethods(['create'])
->setConstructorArgs([$this->createMock(ILogger::class)])
->setConstructorArgs([$this->createMock(LoggerInterface::class)])
->getMock();

// load route configuration
Expand Down Expand Up @@ -214,7 +214,7 @@ private function assertSimpleRoute($routes, $name, $verb, $url, $controllerName,
/** @var IRouter|MockObject $router */
$router = $this->getMockBuilder(Router::class)
->onlyMethods(['create'])
->setConstructorArgs([$this->createMock(ILogger::class)])
->setConstructorArgs([$this->createMock(LoggerInterface::class)])
->getMock();

// we expect create to be called once:
Expand Down Expand Up @@ -264,7 +264,7 @@ private function assertSimpleOCSRoute($routes,
/** @var IRouter|MockObject $router */
$router = $this->getMockBuilder(Router::class)
->onlyMethods(['create'])
->setConstructorArgs([$this->createMock(ILogger::class)])
->setConstructorArgs([$this->createMock(LoggerInterface::class)])
->getMock();

// we expect create to be called once:
Expand All @@ -291,7 +291,7 @@ private function assertOCSResource($yaml, $resourceName, $url, $controllerName,
/** @var IRouter|MockObject $router */
$router = $this->getMockBuilder(Router::class)
->onlyMethods(['create'])
->setConstructorArgs([$this->createMock(ILogger::class)])
->setConstructorArgs([$this->createMock(LoggerInterface::class)])
->getMock();

// route mocks
Expand Down Expand Up @@ -351,7 +351,7 @@ private function assertResource($yaml, $resourceName, $url, $controllerName, $pa
/** @var IRouter|MockObject $router */
$router = $this->getMockBuilder(Router::class)
->onlyMethods(['create'])
->setConstructorArgs([$this->createMock(ILogger::class)])
->setConstructorArgs([$this->createMock(LoggerInterface::class)])
->getMock();

// route mocks
Expand Down
32 changes: 16 additions & 16 deletions tests/lib/DB/QueryBuilder/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use OC\SystemConfig;
use OCP\DB\QueryBuilder\IQueryFunction;
use OCP\IDBConnection;
use OCP\ILogger;
use Psr\Log\LoggerInterface;

/**
* Class QueryBuilderTest
Expand All @@ -49,15 +49,15 @@ class QueryBuilderTest extends \Test\TestCase {
/** @var SystemConfig|\PHPUnit\Framework\MockObject\MockObject */
protected $config;

/** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
/** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;

protected function setUp(): void {
parent::setUp();

$this->connection = \OC::$server->getDatabaseConnection();
$this->config = $this->createMock(SystemConfig::class);
$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->queryBuilder = new QueryBuilder($this->connection, $this->config, $this->logger);
}

Expand Down Expand Up @@ -176,7 +176,7 @@ public function testMaxResults($maxResult, $expectedSet) {

public function dataSelect() {
$config = $this->createMock(SystemConfig::class);
$logger = $this->createMock(ILogger::class);
$logger = $this->createMock(LoggerInterface::class);
$queryBuilder = new QueryBuilder(\OC::$server->getDatabaseConnection(), $config, $logger);
return [
// select('column1')
Expand Down Expand Up @@ -244,7 +244,7 @@ public function testSelect($selectArguments, $expected, $expectedLiteral = '') {

public function dataSelectAlias() {
$config = $this->createMock(SystemConfig::class);
$logger = $this->createMock(ILogger::class);
$logger = $this->createMock(LoggerInterface::class);
$queryBuilder = new QueryBuilder(\OC::$server->getDatabaseConnection(), $config, $logger);
return [
['configvalue', 'cv', ['cv' => '99']],
Expand Down Expand Up @@ -353,7 +353,7 @@ public function testSelectDistinctMultiple() {

public function dataAddSelect() {
$config = $this->createMock(SystemConfig::class);
$logger = $this->createMock(ILogger::class);
$logger = $this->createMock(LoggerInterface::class);
$queryBuilder = new QueryBuilder(\OC::$server->getDatabaseConnection(), $config, $logger);
return [
// addSelect('column1')
Expand Down Expand Up @@ -508,7 +508,7 @@ public function testInsert($tableName, $expectedQueryPart, $expectedQuery) {

public function dataFrom() {
$config = $this->createMock(SystemConfig::class);
$logger = $this->createMock(ILogger::class);
$logger = $this->createMock(LoggerInterface::class);
$qb = new QueryBuilder(\OC::$server->getDatabaseConnection(), $config, $logger);
return [
[$qb->createFunction('(' . $qb->select('*')->from('test')->getSQL() . ')'), 'q', null, null, [
Expand Down Expand Up @@ -1212,7 +1212,7 @@ public function testGetLastInsertId() {

public function dataGetTableName() {
$config = $this->createMock(SystemConfig::class);
$logger = $this->createMock(ILogger::class);
$logger = $this->createMock(LoggerInterface::class);
$qb = new QueryBuilder(\OC::$server->getDatabaseConnection(), $config, $logger);
return [
['*PREFIX*table', null, '`*PREFIX*table`'],
Expand Down Expand Up @@ -1414,12 +1414,12 @@ public function testExecuteWithParameterTooLarge() {
->willReturn($this->createMock(Result::class));
$this->logger
->expects($this->once())
->method('logException')
->willReturnCallback(function ($e, $parameters) {
$this->assertInstanceOf(QueryException::class, $e);
->method('error')
->willReturnCallback(function ($message, $parameters) {
$this->assertInstanceOf(QueryException::class, $parameters['exception']);
$this->assertSame(
'More than 1000 expressions in a list are not allowed on Oracle.',
$parameters['message']
$message
);
});
$this->config
Expand Down Expand Up @@ -1449,12 +1449,12 @@ public function testExecuteWithParametersTooMany() {
->willReturn($this->createMock(Result::class));
$this->logger
->expects($this->once())
->method('logException')
->willReturnCallback(function ($e, $parameters) {
$this->assertInstanceOf(QueryException::class, $e);
->method('error')
->willReturnCallback(function ($message, $parameters) {
$this->assertInstanceOf(QueryException::class, $parameters['exception']);
$this->assertSame(
'The number of parameters must not exceed 65535. Restriction by PostgreSQL.',
$parameters['message']
$message
);
});
$this->config
Expand Down
7 changes: 3 additions & 4 deletions tests/lib/Encryption/EncryptionWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
use OC\Encryption\Manager;
use OC\Memcache\ArrayCache;
use OCP\Files\Storage;
use OCP\ILogger;
use Psr\Log\LoggerInterface;
use Test\TestCase;

class EncryptionWrapperTest extends TestCase {

/** @var EncryptionWrapper */
private $instance;

/** @var \PHPUnit\Framework\MockObject\MockObject | \OCP\ILogger */
/** @var \PHPUnit\Framework\MockObject\MockObject | LoggerInterface */
private $logger;

/** @var \PHPUnit\Framework\MockObject\MockObject | \OC\Encryption\Manager */
Expand All @@ -47,8 +47,7 @@ protected function setUp(): void {

$this->arrayCache = $this->createMock(ArrayCache::class);
$this->manager = $this->createMock(Manager::class);
$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(LoggerInterface::class);

$this->instance = new EncryptionWrapper($this->arrayCache, $this->manager, $this->logger);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/Encryption/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use OCP\Encryption\IEncryptionModule;
use OCP\IConfig;
use OCP\IL10N;
use OCP\ILogger;
use Psr\Log\LoggerInterface;
use Test\TestCase;

class ManagerTest extends TestCase {
Expand All @@ -20,7 +20,7 @@ class ManagerTest extends TestCase {
/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $config;

/** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
/** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
private $logger;

/** @var IL10N|\PHPUnit\Framework\MockObject\MockObject */
Expand All @@ -38,7 +38,7 @@ class ManagerTest extends TestCase {
protected function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);
$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->l10n = $this->createMock(IL10N::class);
$this->view = $this->createMock(View::class);
$this->util = $this->createMock(Util::class);
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/EventDispatcher/SymfonyAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
use OC\EventDispatcher\SymfonyAdapter;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\GenericEvent;
use OCP\ILogger;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\Event as SymfonyEvent;
use Symfony\Component\EventDispatcher\EventDispatcher as SymfonyDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
Expand All @@ -43,7 +43,7 @@ class SymfonyAdapterTest extends TestCase {
/** @var EventDispatcher|MockObject */
private $eventDispatcher;

/** @var ILogger|MockObject */
/** @var LoggerInterface|MockObject */
private $logger;

/** @var EventDispatcherInterface */
Expand All @@ -53,7 +53,7 @@ protected function setUp(): void {
parent::setUp();

$this->eventDispatcher = $this->createMock(EventDispatcher::class);
$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(LoggerInterface::class);

$this->adapter = new SymfonyAdapter(
$this->eventDispatcher,
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Files/Config/UserMountCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
use OC\DB\QueryBuilder\Literal;
use OC\Files\Mount\MountPoint;
use OC\Files\Storage\Storage;
use OC\Log;
use OC\User\Manager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Config\ICachedMountInfo;
use OCP\ICacheFactory;
use OCP\IConfig;
use OCP\IDBConnection;
use OCP\IUserManager;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Test\TestCase;
use Test\Util\User\Dummy;
Expand Down Expand Up @@ -66,7 +66,7 @@ protected function setUp(): void {
$userBackend->createUser('u2', '');
$userBackend->createUser('u3', '');
$this->userManager->registerBackend($userBackend);
$this->cache = new \OC\Files\Config\UserMountCache($this->connection, $this->userManager, $this->createMock(Log::class));
$this->cache = new \OC\Files\Config\UserMountCache($this->connection, $this->userManager, $this->createMock(LoggerInterface::class));
}

protected function tearDown(): void {
Expand Down
3 changes: 2 additions & 1 deletion tests/lib/Files/EtagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use OC\Files\Filesystem;
use OCP\EventDispatcher\IEventDispatcher;
use OCA\Files_Sharing\AppInfo\Application;
use Psr\Log\LoggerInterface;

/**
* Class EtagTest
Expand Down Expand Up @@ -69,7 +70,7 @@ public function testNewUser() {
$files = ['/foo.txt', '/folder/bar.txt', '/folder/subfolder', '/folder/subfolder/qwerty.txt'];
$originalEtags = $this->getEtags($files);

$scanner = new \OC\Files\Utils\Scanner($user1, \OC::$server->getDatabaseConnection(), \OC::$server->query(IEventDispatcher::class), \OC::$server->getLogger());
$scanner = new \OC\Files\Utils\Scanner($user1, \OC::$server->getDatabaseConnection(), \OC::$server->query(IEventDispatcher::class), \OC::$server->get(LoggerInterface::class));
$scanner->backgroundScan('/');

$newEtags = $this->getEtags($files);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
use OC\Files\Storage\StorageFactory;
use OCP\Files\Storage\IStorageFactory;
use OCP\IConfig;
use OCP\ILogger;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;

/**
* @group DB
Expand All @@ -43,7 +43,7 @@ class ObjectStorePreviewCacheMountProviderTest extends \Test\TestCase {
/** @var ObjectStorePreviewCacheMountProvider */
protected $provider;

/** @var ILogger|MockObject */
/** @var LoggerInterface|MockObject */
protected $logger;
/** @var IConfig|MockObject */
protected $config;
Expand All @@ -54,7 +54,7 @@ class ObjectStorePreviewCacheMountProviderTest extends \Test\TestCase {
protected function setUp(): void {
parent::setUp();

$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->config = $this->createMock(IConfig::class);
$this->loader = $this->createMock(StorageFactory::class);

Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Files/Node/HookConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
use OCP\Files\Events\Node\NodeTouchedEvent;
use OCP\Files\Events\Node\NodeWrittenEvent;
use OCP\Files\Node;
use OCP\ILogger;
use OCP\IUserManager;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
use Test\TestCase;
Expand Down Expand Up @@ -77,7 +77,7 @@ protected function setUp(): void {
$this->view,
\OC::$server->getUserManager()->get($this->userId),
\OC::$server->getUserMountCache(),
$this->createMock(ILogger::class),
$this->createMock(LoggerInterface::class),
$this->createMock(IUserManager::class),
$this->createMock(IEventDispatcher::class)
);
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Files/Node/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
use OC\Files\View;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Mount\IMountManager;
use OCP\ILogger;
use OCP\IUserManager;
use Psr\Log\LoggerInterface;
use Test\Traits\UserTrait;

/**
Expand Down Expand Up @@ -59,7 +59,7 @@ protected function setUp(): void {
$this->view,
$user,
\OC::$server->getUserMountCache(),
$this->createMock(ILogger::class),
$this->createMock(LoggerInterface::class),
$this->createMock(IUserManager::class),
$this->createMock(IEventDispatcher::class)
);
Expand Down
Loading