summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/tests/ShareByMailProviderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sharebymail/tests/ShareByMailProviderTest.php')
-rw-r--r--apps/sharebymail/tests/ShareByMailProviderTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php
index 1b215016ee4..cd0600d3ae9 100644
--- a/apps/sharebymail/tests/ShareByMailProviderTest.php
+++ b/apps/sharebymail/tests/ShareByMailProviderTest.php
@@ -675,6 +675,13 @@ class ShareByMailProviderTest extends TestCase {
$folder = $rootFolder->getUserFolder($u1->getUID())->newFolder('foo');
+ $accessList = $provider->getAccessList([$folder], true);
+ $this->assertArrayHasKey('mail', $accessList);
+ $this->assertFalse($accessList['mail']);
+ $accessList = $provider->getAccessList([$folder], false);
+ $this->assertArrayHasKey('mail', $accessList);
+ $this->assertFalse($accessList['mail']);
+
$share1 = $this->shareManager->newShare();
$share1->setSharedWith('user@server.com')
->setSharedBy($u1->getUID())