11<?php
2+
23/**
34 * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
45 * SPDX-License-Identifier: AGPL-3.0-or-later
@@ -60,32 +61,30 @@ public static function sortDataProvider(): array {
6061 #1 – sort properly and otherwise keep existing order
6162 'actors ' => ['users ' => ['celia ' => 3 , 'darius ' => 7 , 'faruk ' => 5 , 'gail ' => 5 ], 'bots ' => ['r2-d2 ' => 8 ]],
6263 'input ' => [
63- 'users ' =>
64- [
65- ['value ' => ['shareWith ' => 'alice ' ]],
66- ['value ' => ['shareWith ' => 'bob ' ]],
67- ['value ' => ['shareWith ' => 'celia ' ]],
68- ['value ' => ['shareWith ' => 'darius ' ]],
69- ['value ' => ['shareWith ' => 'elena ' ]],
70- ['value ' => ['shareWith ' => 'faruk ' ]],
71- ['value ' => ['shareWith ' => 'gail ' ]],
72- ],
64+ 'users ' => [
65+ ['value ' => ['shareWith ' => 'alice ' ]],
66+ ['value ' => ['shareWith ' => 'bob ' ]],
67+ ['value ' => ['shareWith ' => 'celia ' ]],
68+ ['value ' => ['shareWith ' => 'darius ' ]],
69+ ['value ' => ['shareWith ' => 'elena ' ]],
70+ ['value ' => ['shareWith ' => 'faruk ' ]],
71+ ['value ' => ['shareWith ' => 'gail ' ]],
72+ ],
7373 'bots ' => [
7474 ['value ' => ['shareWith ' => 'c-3po ' ]],
7575 ['value ' => ['shareWith ' => 'r2-d2 ' ]],
7676 ]
7777 ],
7878 'expected ' => [
79- 'users ' =>
80- [
81- ['value ' => ['shareWith ' => 'darius ' ]],
82- ['value ' => ['shareWith ' => 'faruk ' ]],
83- ['value ' => ['shareWith ' => 'gail ' ]],
84- ['value ' => ['shareWith ' => 'celia ' ]],
85- ['value ' => ['shareWith ' => 'alice ' ]],
86- ['value ' => ['shareWith ' => 'bob ' ]],
87- ['value ' => ['shareWith ' => 'elena ' ]],
88- ],
79+ 'users ' => [
80+ ['value ' => ['shareWith ' => 'darius ' ]],
81+ ['value ' => ['shareWith ' => 'faruk ' ]],
82+ ['value ' => ['shareWith ' => 'gail ' ]],
83+ ['value ' => ['shareWith ' => 'celia ' ]],
84+ ['value ' => ['shareWith ' => 'alice ' ]],
85+ ['value ' => ['shareWith ' => 'bob ' ]],
86+ ['value ' => ['shareWith ' => 'elena ' ]],
87+ ],
8988 'bots ' => [
9089 ['value ' => ['shareWith ' => 'r2-d2 ' ]],
9190 ['value ' => ['shareWith ' => 'c-3po ' ]],
@@ -96,32 +95,30 @@ public static function sortDataProvider(): array {
9695 #2 – no commentors, input equals output
9796 'actors ' => [],
9897 'input ' => [
99- 'users ' =>
100- [
101- ['value ' => ['shareWith ' => 'alice ' ]],
102- ['value ' => ['shareWith ' => 'bob ' ]],
103- ['value ' => ['shareWith ' => 'celia ' ]],
104- ['value ' => ['shareWith ' => 'darius ' ]],
105- ['value ' => ['shareWith ' => 'elena ' ]],
106- ['value ' => ['shareWith ' => 'faruk ' ]],
107- ['value ' => ['shareWith ' => 'gail ' ]],
108- ],
98+ 'users ' => [
99+ ['value ' => ['shareWith ' => 'alice ' ]],
100+ ['value ' => ['shareWith ' => 'bob ' ]],
101+ ['value ' => ['shareWith ' => 'celia ' ]],
102+ ['value ' => ['shareWith ' => 'darius ' ]],
103+ ['value ' => ['shareWith ' => 'elena ' ]],
104+ ['value ' => ['shareWith ' => 'faruk ' ]],
105+ ['value ' => ['shareWith ' => 'gail ' ]],
106+ ],
109107 'bots ' => [
110108 ['value ' => ['shareWith ' => 'c-3po ' ]],
111109 ['value ' => ['shareWith ' => 'r2-d2 ' ]],
112110 ]
113111 ],
114112 'expected ' => [
115- 'users ' =>
116- [
117- ['value ' => ['shareWith ' => 'alice ' ]],
118- ['value ' => ['shareWith ' => 'bob ' ]],
119- ['value ' => ['shareWith ' => 'celia ' ]],
120- ['value ' => ['shareWith ' => 'darius ' ]],
121- ['value ' => ['shareWith ' => 'elena ' ]],
122- ['value ' => ['shareWith ' => 'faruk ' ]],
123- ['value ' => ['shareWith ' => 'gail ' ]],
124- ],
113+ 'users ' => [
114+ ['value ' => ['shareWith ' => 'alice ' ]],
115+ ['value ' => ['shareWith ' => 'bob ' ]],
116+ ['value ' => ['shareWith ' => 'celia ' ]],
117+ ['value ' => ['shareWith ' => 'darius ' ]],
118+ ['value ' => ['shareWith ' => 'elena ' ]],
119+ ['value ' => ['shareWith ' => 'faruk ' ]],
120+ ['value ' => ['shareWith ' => 'gail ' ]],
121+ ],
125122 'bots ' => [
126123 ['value ' => ['shareWith ' => 'c-3po ' ]],
127124 ['value ' => ['shareWith ' => 'r2-d2 ' ]],
0 commit comments