aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/Share20/DefaultShareProviderTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Share20/DefaultShareProviderTest.php b/tests/lib/Share20/DefaultShareProviderTest.php
index 3c816bcb025..063cfeb517c 100644
--- a/tests/lib/Share20/DefaultShareProviderTest.php
+++ b/tests/lib/Share20/DefaultShareProviderTest.php
@@ -30,6 +30,7 @@ use OCP\Defaults;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
+use OCP\IConfig;
use OCP\IDBConnection;
use OCP\IGroup;
use OCP\IGroupManager;
@@ -98,6 +99,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->shareManager = $this->createMock(IShareManager::class);
+ $this->config = $this->createMock(IConfig::class);
$this->userManager->expects($this->any())->method('userExists')->willReturn(true);
$this->timeFactory->expects($this->any())->method('now')->willReturn(new \DateTimeImmutable("2023-05-04 00:00 Europe/Berlin"));
@@ -116,6 +118,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->urlGenerator,
$this->timeFactory,
$this->shareManager,
+ $this->config,
);
}
@@ -478,6 +481,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->urlGenerator,
$this->timeFactory,
$this->shareManager,
+ $this->config,
])
->setMethods(['getShareById'])
->getMock();
@@ -574,6 +578,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->urlGenerator,
$this->timeFactory,
$this->shareManager,
+ $this->config,
])
->setMethods(['getShareById'])
->getMock();
@@ -2569,6 +2574,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->urlGenerator,
$this->timeFactory,
$this->shareManager,
+ $this->config,
);
$password = md5(time());
@@ -2668,6 +2674,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->urlGenerator,
$this->timeFactory,
$this->shareManager,
+ $this->config,
);
$u1 = $userManager->createUser('testShare1', 'test');
@@ -2770,6 +2777,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->urlGenerator,
$this->timeFactory,
$this->shareManager,
+ $this->config,
);
$u1 = $userManager->createUser('testShare1', 'test');