Skip to content

Commit 44ef5c0

Browse files
committed
fixup! refactor: extract logic to hide mounts and share information
1 parent 95446ba commit 44ef5c0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,12 @@ public function testGetPublicPermissions(): void {
327327

328328
/** @var File&MockObject $node */
329329
$node = $this->createTestNode(File::class);
330-
$node->expects($this->any())
331-
->method('getDavPermissions')
332-
->willReturn('DWCKMSR');
330+
$node->expects($this->once())
331+
->method('getPublicDavPermissions')
332+
->willReturn('DWCKR');
333+
334+
$node->expects($this->never())
335+
->method('getDavPermissions');
333336

334337
$this->plugin->handleGetProperties(
335338
$propFind,

0 commit comments

Comments
 (0)