summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-02-01 21:26:22 +0100
committerJoas Schilling <coding@schilljs.com>2023-02-01 21:26:22 +0100
commit54bc20ce6b0e36f328c5e11c6e58581acdd0b783 (patch)
tree7f8ffea27928a8db06c0af3274a1db29ebb0c62d /tests
parent94f8f95106671426aa0b5fb8ef1f7ae45714112a (diff)
Also order attendees by roomToken for the breakout room participants
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index 43d3f5bd6..61cbb0481 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -709,6 +709,9 @@ class FeatureContext implements Context, SnippetAcceptingContext {
}
protected static function sortAttendees(array $a1, array $a2): int {
+ if (array_key_exists('roomToken', $a1) && array_key_exists('roomToken', $a2) && $a1['roomToken'] !== $a2['roomToken']) {
+ return $a1['roomToken'] <=> $a2['roomToken'];
+ }
if (array_key_exists('participantType', $a1) && array_key_exists('participantType', $a2) && $a1['participantType'] !== $a2['participantType']) {
return $a1['participantType'] <=> $a2['participantType'];
}