aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-10-08 16:53:51 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-10-08 16:53:51 +0200
commit0e282ea21a9a99bfd9e49316f216767145e500ca (patch)
treeaa14d181a3ff88a65b7f4daff7122feb1645a80a /apps/sharebymail/tests
parent59e4e4bfba4e4b9fede3b743adedce668dcd0110 (diff)
downloadnextcloud-server-0e282ea21a9a99bfd9e49316f216767145e500ca.tar.gz
nextcloud-server-0e282ea21a9a99bfd9e49316f216767145e500ca.zip
fix(tests): Fix sharebymail testsfix/fix-email-share-transfer-accross-storages
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/sharebymail/tests')
-rw-r--r--apps/sharebymail/tests/ShareByMailProviderTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php
index c01f5b47632..78e026c830c 100644
--- a/apps/sharebymail/tests/ShareByMailProviderTest.php
+++ b/apps/sharebymail/tests/ShareByMailProviderTest.php
@@ -755,6 +755,8 @@ class ShareByMailProviderTest extends TestCase {
$this->share->expects($this->once())->method('getSharedBy')->willReturn($sharedBy);
$this->share->expects($this->any())->method('getNote')->willReturn($note);
$this->share->expects($this->atLeastOnce())->method('getId')->willReturn($id);
+ $this->share->expects($this->atLeastOnce())->method('getNodeId')->willReturn($itemSource);
+ $this->share->expects($this->once())->method('getSharedWith')->willReturn($shareWith);
$this->assertSame($this->share,
$instance->update($this->share)