From c8f91bfd7c8427e4bf2da5f1f30edf57bd491a57 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 16 Jul 2020 12:37:34 +0200 Subject: Also sort the sharee suggestions by token Signed-off-by: Joas Schilling --- tests/integration/features/bootstrap/SharingContext.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/integration/features/bootstrap/SharingContext.php b/tests/integration/features/bootstrap/SharingContext.php index 5d20b46f3..73ece647f 100644 --- a/tests/integration/features/bootstrap/SharingContext.php +++ b/tests/integration/features/bootstrap/SharingContext.php @@ -647,6 +647,12 @@ class SharingContext implements Context { $sharees[] = $expectedSharee; } $respondedArray = $this->getArrayOfShareesResponded($this->response, $shareeType); + usort($sharees, function ($a, $b) { + return $a[2] <=> $b[2]; // Sort by token + }); + usort($respondedArray, function ($a, $b) { + return $a[2] <=> $b[2]; // Sort by token + }); \PHPUnit\Framework\Assert::assertEquals($sharees, $respondedArray); } else { $respondedArray = $this->getArrayOfShareesResponded($this->response, $shareeType); -- cgit v1.2.3