Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/lib/Sharing/AbstractSharingManagerTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -3019,6 +3019,9 @@ public function testGetShareWithPublicSecret(bool $isSecretPublic): void {
unset($share['last_updated']);
$this->assertIsList($share['recipients']);
$this->assertCount(2, $share['recipients']);
// The order in which recipients are returned by the database is not guaranteed,
// so sort them to make assertions on specific indexes reliable.
usort($share['recipients'], fn (array $a, array $b): int => $a['value'] <=> $b['value']);
$this->assertEquals([
'class' => TestShareRecipientType1::class,
'value' => 'recipient1',
Expand Down
Loading