Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-11-23 15:04:16 +0300
committerJoas Schilling <coding@schilljs.com>2018-12-04 18:42:07 +0300
commit11c39b6c1678397680174c7d687698590b67cf10 (patch)
tree1fcc177259bcee6bb4909ca83e27f40c6fc08d61 /apps/sharebymail/tests
parent441496a5a579a30d21c9545d32429281de66bd24 (diff)
Unshare from mail activity is missing
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/sharebymail/tests')
-rw-r--r--apps/sharebymail/tests/ShareByMailProviderTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php
index 4942dac7022..090e6e92848 100644
--- a/apps/sharebymail/tests/ShareByMailProviderTest.php
+++ b/apps/sharebymail/tests/ShareByMailProviderTest.php
@@ -537,9 +537,10 @@ class ShareByMailProviderTest extends TestCase {
}
public function testDelete() {
- $instance = $this->getInstance(['removeShareFromTable']);
+ $instance = $this->getInstance(['removeShareFromTable', 'createShareActivity']);
$this->share->expects($this->once())->method('getId')->willReturn(42);
$instance->expects($this->once())->method('removeShareFromTable')->with(42);
+ $instance->expects($this->once())->method('createShareActivity')->with($this->share, 'unshare');
$instance->delete($this->share);
}