summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-05-16 14:10:30 +0200
committerJoas Schilling <coding@schilljs.com>2024-05-16 14:11:14 +0200
commitf8123dc2e42b457de1ceed45349dba8f2885e5de (patch)
treeee4aaac45080f62acae49bf4b0b1ec6a4057dd3f
parentf40ece0acd19c7da2303780ebe4fea4fff742b52 (diff)
fix(tests): Sort attendees before using them when preparing the expected result
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index a446c54a0..4e800809e 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -768,6 +768,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
$result[] = $data;
}
+ usort($result, [self::class, 'sortAttendees']);
$expected = array_map(function ($attendee, $actual) {
if (isset($attendee['actorId']) && substr($attendee['actorId'], 0, strlen('"guest')) === '"guest') {
@@ -813,7 +814,6 @@ class FeatureContext implements Context, SnippetAcceptingContext {
}, $result);
usort($expected, [self::class, 'sortAttendees']);
- usort($result, [self::class, 'sortAttendees']);
Assert::assertEquals($expected, $result, print_r([
'original' => $formData->getHash(),