@@ -109,7 +109,7 @@ public function testSortNoNodes(): void {
109109 ]
110110 ];
111111 $ workArray = $ originalArray ;
112- $ this ->sorter ->sort ($ workArray , ['itemType ' => 'files ' , 'itemId ' => 404 ]);
112+ $ this ->sorter ->sort ($ workArray , ['itemType ' => 'files ' , 'itemId ' => ' 404 ' ]);
113113
114114 $ this ->assertEquals ($ originalArray , $ workArray );
115115 }
@@ -118,7 +118,7 @@ public function sortDataProvider() {
118118 return [[
119119 [
120120 #0 – sort properly and otherwise keep existing order
121- 'context ' => ['itemType ' => 'files ' , 'itemId ' => 42 ],
121+ 'context ' => ['itemType ' => 'files ' , 'itemId ' => ' 42 ' ],
122122 'accessList ' => ['users ' => ['celia ' , 'darius ' , 'faruk ' , 'gail ' ], 'bots ' => ['r2-d2 ' ]],
123123 'input ' => [
124124 'users ' =>
@@ -155,7 +155,7 @@ public function sortDataProvider() {
155155 ],
156156 [
157157 #1 – no recipients
158- 'context ' => ['itemType ' => 'files ' , 'itemId ' => 42 ],
158+ 'context ' => ['itemType ' => 'files ' , 'itemId ' => ' 42 ' ],
159159 'accessList ' => ['users ' => false ],
160160 'input ' => [
161161 'users ' =>
@@ -192,7 +192,7 @@ public function sortDataProvider() {
192192 ],
193193 [
194194 #2 – unsupported item type
195- 'context ' => ['itemType ' => 'announcements ' , 'itemId ' => 42 ],
195+ 'context ' => ['itemType ' => 'announcements ' , 'itemId ' => ' 42 ' ],
196196 'accessList ' => null , // not needed
197197 'input ' => [
198198 'users ' =>
@@ -229,7 +229,7 @@ public function sortDataProvider() {
229229 ],
230230 [
231231 #3 – no nothing
232- 'context ' => ['itemType ' => 'files ' , 'itemId ' => 42 ],
232+ 'context ' => ['itemType ' => 'files ' , 'itemId ' => ' 42 ' ],
233233 'accessList ' => [],
234234 'input ' => [],
235235 'expected ' => [],
0 commit comments