Skip to content

Commit 0d79ac8

Browse files
committed
test: adjust tests to unsorted share listing
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent d470ad1 commit 0d79ac8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/lib/Share20/DefaultShareProviderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,6 +2642,7 @@ public function testGetSharesInFolder(): void {
26422642
$this->assertSame(IShare::TYPE_USER, $file_shares[0]->getShareType());
26432643

26442644
$folder_shares = $result[$folder2->getId()];
2645+
usort($folder_shares, fn (IShare $a, IShare $b) => $a->getId() <=> $b->getId());
26452646
$this->assertCount(2, $folder_shares);
26462647
$this->assertSame($folder2->getId(), $folder_shares[0]->getNodeId());
26472648
$this->assertSame($folder2->getId(), $folder_shares[1]->getNodeId());

0 commit comments

Comments
 (0)