diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-07 11:27:29 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-19 17:37:33 +0200 |
commit | a6bf93501deb1d2d01535e586388aeb5e6ee93f5 (patch) | |
tree | 153b63c2eb19803d955c68022f19f4a9b5bf082a /apps/files_trashbin/tests/StorageTest.php | |
parent | 489b4807dbc52e69590846ff76d0d4d5b4ab2968 (diff) | |
download | nextcloud-server-a6bf93501deb1d2d01535e586388aeb5e6ee93f5.tar.gz nextcloud-server-a6bf93501deb1d2d01535e586388aeb5e6ee93f5.zip |
fix(files_trashbin): Migrate to IEventDispatcher and emit as typed event
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_trashbin/tests/StorageTest.php')
-rw-r--r-- | apps/files_trashbin/tests/StorageTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/tests/StorageTest.php b/apps/files_trashbin/tests/StorageTest.php index 15b47385d45..b4b995c3ae5 100644 --- a/apps/files_trashbin/tests/StorageTest.php +++ b/apps/files_trashbin/tests/StorageTest.php @@ -41,6 +41,7 @@ use OCA\Files_Trashbin\Storage; use OCA\Files_Trashbin\Trash\ITrashManager; use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Utility\ITimeFactory; +use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Cache\ICache; use OCP\Files\Folder; use OCP\Files\IRootFolder; @@ -50,7 +51,6 @@ use OCP\ILogger; use OCP\IUserManager; use OCP\Lock\ILockingProvider; use OCP\Share\IShare; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Test\Traits\MountProviderTrait; class TemporaryNoCross extends Temporary { @@ -607,7 +607,7 @@ class StorageTest extends \Test\TestCase { $userManager->expects($this->any()) ->method('userExists')->willReturn($userExists); $logger = $this->getMockBuilder(ILogger::class)->getMock(); - $eventDispatcher = $this->createMock(EventDispatcherInterface::class); + $eventDispatcher = $this->createMock(IEventDispatcher::class); $rootFolder = $this->createMock(IRootFolder::class); $userFolder = $this->createMock(Folder::class); $node = $this->getMockBuilder(Node::class)->disableOriginalConstructor()->getMock(); |