diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-24 11:12:51 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-07-29 09:23:07 +0000 |
commit | 1983d228f5fcc820955e5117ff6e03b0f3526b45 (patch) | |
tree | 5c004e28ecfb6ef13ef214d86bd7c20c84fdb391 | |
parent | 2d0a6c6e01bf0c9c0354f76ac6048b17a185d35b (diff) | |
download | nextcloud-server-backport/51602/stable29.tar.gz nextcloud-server-backport/51602/stable29.zip |
chore(tests): Adapt DefaultShareProviderTest to new constructor parameterbackport/51602/stable29
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
[skip ci]
-rw-r--r-- | tests/lib/Share20/DefaultShareProviderTest.php | 8 |
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'); |