diff options
author | Robin Appelman <robin@icewind.nl> | 2023-08-15 16:51:35 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-08-18 11:14:52 +0200 |
commit | 36f9ebb6776bf41f75599d7ff48826b204e29f6e (patch) | |
tree | 1811ab276ee1c4dbae1839640017335ceffea399 /apps/files_trashbin/tests | |
parent | 9ea03a9534c1d8c40c500d6d484c001ae66c5f9a (diff) | |
download | nextcloud-server-36f9ebb6776bf41f75599d7ff48826b204e29f6e.tar.gz nextcloud-server-36f9ebb6776bf41f75599d7ff48826b204e29f6e.zip |
only gather dependencies for trashbin wrapper once
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_trashbin/tests')
-rw-r--r-- | apps/files_trashbin/tests/StorageTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_trashbin/tests/StorageTest.php b/apps/files_trashbin/tests/StorageTest.php index b4b995c3ae5..1b9c23f778d 100644 --- a/apps/files_trashbin/tests/StorageTest.php +++ b/apps/files_trashbin/tests/StorageTest.php @@ -51,6 +51,7 @@ use OCP\ILogger; use OCP\IUserManager; use OCP\Lock\ILockingProvider; use OCP\Share\IShare; +use Psr\Log\LoggerInterface; use Test\Traits\MountProviderTrait; class TemporaryNoCross extends Temporary { @@ -606,7 +607,7 @@ class StorageTest extends \Test\TestCase { ->disableOriginalConstructor()->getMock(); $userManager->expects($this->any()) ->method('userExists')->willReturn($userExists); - $logger = $this->getMockBuilder(ILogger::class)->getMock(); + $logger = $this->getMockBuilder(LoggerInterface::class)->getMock(); $eventDispatcher = $this->createMock(IEventDispatcher::class); $rootFolder = $this->createMock(IRootFolder::class); $userFolder = $this->createMock(Folder::class); |