Skip to content

Commit

Permalink
fixup! fix(dav): also return shared-with-me shares data
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jun 6, 2024
1 parent 32ae19f commit 630e27c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function testGetProperties($shareTypes): void {
->with(
$this->equalTo('user1'),
$this->anything(),
$this->anything(),
$this->equalTo($node),
$this->equalTo(false),
$this->equalTo(-1)
)
Expand All @@ -111,6 +111,16 @@ public function testGetProperties($shareTypes): void {
return [];
});

$this->shareManager->expects($this->any())
->method('getSharedWith')
->with(
$this->equalTo('user1'),
$this->anything(),
$this->equalTo($node),
$this->equalTo(-1)
)
->willReturn([]);

$propFind = new \Sabre\DAV\PropFind(
'/dummyPath',
[self::SHARETYPES_PROPERTYNAME],
Expand Down Expand Up @@ -199,6 +209,16 @@ public function testPreloadThenGetProperties($shareTypes): void {
return [];
});

$this->shareManager->expects($this->any())
->method('getSharedWith')
->with(
$this->equalTo('user1'),
$this->anything(),
$this->equalTo($node),
$this->equalTo(-1)
)
->willReturn([]);

$this->shareManager->expects($this->any())
->method('getSharesInFolder')
->with(
Expand Down

0 comments on commit 630e27c

Please sign in to comment.