Skip to content

Commit

Permalink
ShareByMailProviderTest: testGetAccessList: use correct array key
Browse files Browse the repository at this point in the history
Change array key from public to mail.

Signed-off-by: Adam Serbinski <[email protected]>
  • Loading branch information
ASerbinski committed Jan 24, 2023
1 parent ab9ba4a commit bc2c24e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/sharebymail/tests/ShareByMailProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]')
Expand Down

0 comments on commit bc2c24e

Please sign in to comment.