diff --git a/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php b/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php index 8a7209e52dc3f..11c9c21eb5c32 100644 --- a/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php +++ b/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php @@ -27,6 +27,7 @@ use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\JSONResponse; use OCP\Http\Client\IClientService; +use OCP\IConfig; use OCP\IRequest; use OCP\Http\Client\IResponse; use OCP\Http\Client\IClient; @@ -50,6 +51,7 @@ protected function setUp(): void { $this->request = $this->createMock(IRequest::class); $this->externalManager = $this->createMock(Manager::class); $this->clientService = $this->createMock(IClientService::class); + $this->config = $this->createMock(IConfig::class); } /** @@ -60,7 +62,8 @@ public function getExternalShareController() { 'files_sharing', $this->request, $this->externalManager, - $this->clientService + $this->clientService, + $this->config, ); }