summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-09-08 20:04:37 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2021-09-10 08:36:45 +0200
commitc56c317d82e6015739549a606578e963578f4de6 (patch)
tree0df61d951607776132ee57d1f99d7ffcd7d7099d /apps/files_sharing/tests
parent2693573be23d7e939ae979bbd910d78c3649fad4 (diff)
downloadnextcloud-server-c56c317d82e6015739549a606578e963578f4de6.tar.gz
nextcloud-server-c56c317d82e6015739549a606578e963578f4de6.zip
Emit event on link share action
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/Controller/ShareControllerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareControllerTest.php b/apps/files_sharing/tests/Controller/ShareControllerTest.php
index 07bd845729d..be2616f70fc 100644
--- a/apps/files_sharing/tests/Controller/ShareControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareControllerTest.php
@@ -299,7 +299,7 @@ class ShareControllerTest extends \Test\TestCase {
return null;
});
- $this->eventDispatcher->expects($this->once())
+ $this->eventDispatcher->expects($this->exactly(2))
->method('dispatchTyped')
->with(
$this->callback(function ($event) use ($share) {
@@ -450,7 +450,7 @@ class ShareControllerTest extends \Test\TestCase {
return null;
});
- $this->eventDispatcher->expects($this->once())
+ $this->eventDispatcher->expects($this->exactly(2))
->method('dispatchTyped')
->with(
$this->callback(function ($event) use ($share) {
@@ -605,7 +605,7 @@ class ShareControllerTest extends \Test\TestCase {
return null;
});
- $this->eventDispatcher->expects($this->once())
+ $this->eventDispatcher->expects($this->exactly(2))
->method('dispatchTyped')
->with(
$this->callback(function ($event) use ($share) {