diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index a446c54a0e0..4e800809ed3 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -768,6 +768,7 @@ protected function assertAttendeeList(string $identifier, ?TableNode $formData, $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 @@ protected function assertAttendeeList(string $identifier, ?TableNode $formData, }, $result); usort($expected, [self::class, 'sortAttendees']); - usort($result, [self::class, 'sortAttendees']); Assert::assertEquals($expected, $result, print_r([ 'original' => $formData->getHash(),