diff options
author | Robin Appelman <robin@icewind.nl> | 2021-08-09 15:53:09 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-08-24 15:26:50 +0200 |
commit | 8597d9c7d40a0bc56622d9b2b1aa7925ea09b686 (patch) | |
tree | 7947542689307dc88a6e0883ce2db8c0d8042954 /apps/files_sharing/tests | |
parent | a7aa200c336812f24f93022fbcace974bf5a6ebe (diff) | |
download | nextcloud-server-8597d9c7d40a0bc56622d9b2b1aa7925ea09b686.tar.gz nextcloud-server-8597d9c7d40a0bc56622d9b2b1aa7925ea09b686.zip |
add event for when a share is mounted
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/MountProviderTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/MountProviderTest.php b/apps/files_sharing/tests/MountProviderTest.php index 8025cdddff9..756c6f95d42 100644 --- a/apps/files_sharing/tests/MountProviderTest.php +++ b/apps/files_sharing/tests/MountProviderTest.php @@ -30,6 +30,7 @@ namespace OCA\Files_Sharing\Tests; use OCA\Files_Sharing\MountProvider; +use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\IRootFolder; use OCP\Files\Storage\IStorageFactory; use OCP\IConfig; @@ -70,8 +71,9 @@ class MountProviderTest extends \Test\TestCase { $this->loader = $this->getMockBuilder('OCP\Files\Storage\IStorageFactory')->getMock(); $this->shareManager = $this->getMockBuilder(IManager::class)->getMock(); $this->logger = $this->getMockBuilder(ILogger::class)->getMock(); + $eventDispatcher = $this->createMock(IEventDispatcher::class); - $this->provider = new MountProvider($this->config, $this->shareManager, $this->logger); + $this->provider = new MountProvider($this->config, $this->shareManager, $this->logger, $eventDispatcher); } private function makeMockShare($id, $nodeId, $owner = 'user2', $target = null, $permissions = 31) { |