@@ -50,7 +50,7 @@ public function getListData(): array|Arrayable
5050 });
5151
5252 $ this
53- ->get ('/sharp/s-list/person?filter_job=physicist ' )
53+ ->get ('/sharp/root/ s-list/person?filter_job=physicist ' )
5454 ->assertOk ()
5555 ->assertInertia (fn (Assert $ page ) => $ page
5656 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -103,7 +103,7 @@ public function getListData(): array|Arrayable
103103 });
104104
105105 $ this
106- ->get ('/sharp/s-list/person ' )
106+ ->get ('/sharp/root/ s-list/person ' )
107107 ->assertOk ()
108108 ->assertInertia (fn (Assert $ page ) => $ page
109109 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -154,7 +154,7 @@ public function getListData(): array|Arrayable
154154 });
155155
156156 $ this
157- ->get ('/sharp/s-list/person?filter_job=physicist,physician ' )
157+ ->get ('/sharp/root/ s-list/person?filter_job=physicist,physician ' )
158158 ->assertOk ()
159159 ->assertInertia (fn (Assert $ page ) => $ page
160160 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -171,7 +171,7 @@ public function getListData(): array|Arrayable
171171 );
172172
173173 $ this
174- ->get ('/sharp/s-list/person?filter_job=0 ' )
174+ ->get ('/sharp/root/ s-list/person?filter_job=0 ' )
175175 ->assertOk ()
176176 ->assertInertia (fn (Assert $ page ) => $ page
177177 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -231,13 +231,13 @@ public function getListData(): array|Arrayable
231231 ],
232232 ])
233233 ->assertSessionHasNoErrors ()
234- ->assertRedirect ('/sharp/s-list/person?filter_job=physicist ' );
234+ ->assertRedirect ('/sharp/root/ s-list/person?filter_job=physicist ' );
235235
236236 expect (session ('_sharp_retained_filter_job ' ))->toBe ('physicist ' );
237237
238238 // Second call: filter should be valued
239239 $ this
240- ->get ('/sharp/s-list/person ' )
240+ ->get ('/sharp/root/ s-list/person ' )
241241 ->assertOk ()
242242 ->assertInertia (fn (Assert $ page ) => $ page
243243 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -250,7 +250,7 @@ public function getListData(): array|Arrayable
250250
251251 // Third call: should use QS instead of session
252252 $ this
253- ->get ('/sharp/s-list/person?filter_job=physician ' )
253+ ->get ('/sharp/root/ s-list/person?filter_job=physician ' )
254254 ->assertOk ()
255255 ->assertInertia (fn (Assert $ page ) => $ page
256256 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -269,10 +269,10 @@ public function getListData(): array|Arrayable
269269 ],
270270 ])
271271 ->assertSessionHasNoErrors ()
272- ->assertRedirect ('/sharp/s-list/person ' );
272+ ->assertRedirect ('/sharp/root/ s-list/person ' );
273273
274274 $ this
275- ->get ('/sharp/s-list/person ' )
275+ ->get ('/sharp/root/ s-list/person ' )
276276 ->assertOk ()
277277 ->assertInertia (fn (Assert $ page ) => $ page
278278 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -324,11 +324,11 @@ public function values(): array
324324 ],
325325 ])
326326 ->assertSessionHasNoErrors ()
327- ->assertRedirect ('/sharp/s-list/person?filter_job= ' .urlencode ('physicist,physician ' ));
327+ ->assertRedirect ('/sharp/root/ s-list/person?filter_job= ' .urlencode ('physicist,physician ' ));
328328
329329 // Call to retain the filter on session
330330 $ this
331- ->get ('/sharp/s-list/person?filter_job=physicist,physician ' )
331+ ->get ('/sharp/root/ s-list/person?filter_job=physicist,physician ' )
332332 ->assertOk ();
333333
334334 expect (session ('_sharp_retained_filter_job ' ))->toBe ('physicist,physician ' );
@@ -379,7 +379,7 @@ public function getListData(): array|Arrayable
379379
380380 // First call: use default value
381381 $ this
382- ->get ('/sharp/s-list/person ' )
382+ ->get ('/sharp/root/ s-list/person ' )
383383 ->assertOk ()
384384 ->assertInertia (fn (Assert $ page ) => $ page
385385 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -397,11 +397,11 @@ public function getListData(): array|Arrayable
397397 ],
398398 ])
399399 ->assertSessionHasNoErrors ()
400- ->assertRedirect ('/sharp/s-list/person?filter_job=physician ' );
400+ ->assertRedirect ('/sharp/root/ s-list/person?filter_job=physician ' );
401401
402402 // Second call: use filter value
403403 $ this
404- ->get ('/sharp/s-list/person?filter_job=physician ' )
404+ ->get ('/sharp/root/ s-list/person?filter_job=physician ' )
405405 ->assertOk ()
406406 ->assertInertia (fn (Assert $ page ) => $ page
407407 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -414,7 +414,7 @@ public function getListData(): array|Arrayable
414414
415415 // Third call: no filter, use retained value
416416 $ this
417- ->get ('/sharp/s-list/person ' )
417+ ->get ('/sharp/root/ s-list/person ' )
418418 ->assertOk ()
419419 ->assertInertia (fn (Assert $ page ) => $ page
420420 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -432,11 +432,11 @@ public function getListData(): array|Arrayable
432432 ],
433433 ])
434434 ->assertSessionHasNoErrors ()
435- ->assertRedirect ('/sharp/s-list/person ' );
435+ ->assertRedirect ('/sharp/root/ s-list/person ' );
436436
437437 // Fourth call: reset retained value
438438 $ this
439- ->get ('/sharp/s-list/person ' )
439+ ->get ('/sharp/root/ s-list/person ' )
440440 ->assertOk ()
441441 ->assertInertia (fn (Assert $ page ) => $ page
442442 ->has ('entityList.data.0 ' , fn (Assert $ json ) => $ json
@@ -482,5 +482,5 @@ public function values(): array
482482 ],
483483 ])
484484 ->assertSessionHasNoErrors ()
485- ->assertRedirect ('/sharp/s-list/person?filter_job=physicist ' );
485+ ->assertRedirect ('/sharp/root/ s-list/person?filter_job=physicist ' );
486486});
0 commit comments