aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-10-12 11:36:35 +0200
committerJoas Schilling <coding@schilljs.com>2023-10-12 11:36:35 +0200
commitcd659b7119a852c44fc93824bbff057436e70191 (patch)
treedda0b4bad8d4e4b5afcfec7ee1b75da5ff0c0880 /apps
parent91ebbe80037d13890d680e697593fbe7eed777cb (diff)
downloadnextcloud-server-cd659b7119a852c44fc93824bbff057436e70191.tar.gz
nextcloud-server-cd659b7119a852c44fc93824bbff057436e70191.zip
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/Controller/ExternalShareControllerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php b/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php
index 8a7209e52dc..11c9c21eb5c 100644
--- a/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ExternalShareControllerTest.php
@@ -27,6 +27,7 @@ use OCA\Files_Sharing\Controller\ExternalSharesController;
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 @@ class ExternalShareControllerTest extends \Test\TestCase {
$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 @@ class ExternalShareControllerTest extends \Test\TestCase {
'files_sharing',
$this->request,
$this->externalManager,
- $this->clientService
+ $this->clientService,
+ $this->config,
);
}