diff options
Diffstat (limited to 'apps/files_sharing/tests/ApiTest.php')
-rw-r--r-- | apps/files_sharing/tests/ApiTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/ApiTest.php b/apps/files_sharing/tests/ApiTest.php index 98f87c96f31..cdb6d2ddcca 100644 --- a/apps/files_sharing/tests/ApiTest.php +++ b/apps/files_sharing/tests/ApiTest.php @@ -48,9 +48,10 @@ use OCP\IDateTimeZone; use OCP\IL10N; use OCP\IPreview; use OCP\IRequest; -use OCP\IServerContainer; use OCP\Share\IShare; use OCP\UserStatus\IManager as IUserStatusManager; +use Psr\Container\ContainerInterface; +use Psr\Log\LoggerInterface; /** * Class ApiTest @@ -120,10 +121,11 @@ class ApiTest extends TestCase { }); $config = $this->createMock(IConfig::class); $appManager = $this->createMock(IAppManager::class); - $serverContainer = $this->createMock(IServerContainer::class); + $serverContainer = $this->createMock(ContainerInterface::class); $userStatusManager = $this->createMock(IUserStatusManager::class); $previewManager = $this->createMock(IPreview::class); $dateTimeZone = $this->createMock(IDateTimeZone::class); + $logger = $this->createMock(LoggerInterface::class); $dateTimeZone->method('getTimeZone')->willReturn(new \DateTimeZone(date_default_timezone_get())); return new ShareAPIController( @@ -134,7 +136,6 @@ class ApiTest extends TestCase { \OC::$server->getUserManager(), \OC::$server->getRootFolder(), \OC::$server->getURLGenerator(), - $userId, $l, $config, $appManager, @@ -142,6 +143,8 @@ class ApiTest extends TestCase { $userStatusManager, $previewManager, $dateTimeZone, + $logger, + $userId, ); } |