-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ShareByMailProviderTest: testGetAccessList: use correct array key
Change array key from public to mail. Signed-off-by: Adam Serbinski <[email protected]>
- Loading branch information
1 parent
dc4c173
commit 9a567fe
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1086,11 +1086,11 @@ public function testGetAccessList() { | |
$folder = $rootFolder->getUserFolder($u1->getUID())->newFolder('foo'); | ||
|
||
$accessList = $provider->getAccessList([$folder], true); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertFalse($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertFalse($accessList['mail']); | ||
$accessList = $provider->getAccessList([$folder], false); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertFalse($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertFalse($accessList['mail']); | ||
|
||
$share1 = $this->shareManager->newShare(); | ||
$share1->setSharedWith('[email protected]') | ||
|
@@ -1109,29 +1109,29 @@ public function testGetAccessList() { | |
$share2 = $provider->create($share2); | ||
|
||
$accessList = $provider->getAccessList([$folder], true); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertTrue($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertTrue($accessList['mail']); | ||
$accessList = $provider->getAccessList([$folder], false); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertTrue($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertTrue($accessList['mail']); | ||
|
||
$provider->delete($share2); | ||
|
||
$accessList = $provider->getAccessList([$folder], true); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertTrue($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertTrue($accessList['mail']); | ||
$accessList = $provider->getAccessList([$folder], false); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertTrue($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertTrue($accessList['mail']); | ||
|
||
$provider->delete($share1); | ||
|
||
$accessList = $provider->getAccessList([$folder], true); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertFalse($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertFalse($accessList['mail']); | ||
$accessList = $provider->getAccessList([$folder], false); | ||
$this->assertArrayHasKey('public', $accessList); | ||
$this->assertFalse($accessList['public']); | ||
$this->assertArrayHasKey('mail', $accessList); | ||
$this->assertFalse($accessList['mail']); | ||
|
||
$u1->delete(); | ||
$u2->delete(); | ||
|