Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-07-16 13:37:34 +0300
committerJoas Schilling <coding@schilljs.com>2020-07-27 17:44:26 +0300
commitc8f91bfd7c8427e4bf2da5f1f30edf57bd491a57 (patch)
tree96dcb520c811546077eb58c21497a526345f0c4d /tests
parentc99c7d40d99c7c6c63ee2e661b0716ded86b0aae (diff)
Also sort the sharee suggestions by token
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/SharingContext.php6
1 files changed, 6 insertions, 0 deletions
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);