@@ -52,13 +52,6 @@ protected function setUp(): void
52
52
$ this ->moduleConfig ->enabled = false ;
53
53
}
54
54
55
- protected function tearDown (): void
56
- {
57
- parent ::tearDown ();
58
-
59
- $ this ->resetServices ();
60
- }
61
-
62
55
private function createRouteCollection (array $ routes = []): RouteCollection
63
56
{
64
57
$ collection = new RouteCollection (Services::locator (), $ this ->moduleConfig , new Routing ());
@@ -321,42 +314,4 @@ public function testFilterOrderWithOldFilterOrder()
321
314
];
322
315
$ this ->assertSame ($ expected , $ filters );
323
316
}
324
-
325
- public function testFindFiltersWithAnyLocales (): void
326
- {
327
- $ collection = $ this ->createRouteCollection ();
328
- $ collection ->useSupportedLocalesOnly (false );
329
- $ collection ->get ('{locale}/admin/(:segment) ' , 'AdminController::index/$1 ' );
330
- Services::injectMock ('routes ' , $ collection );
331
- $ router = $ this ->createRouter ($ collection );
332
- $ filters = $ this ->createFilters ();
333
- $ finder = new FilterFinder ($ router , $ filters );
334
-
335
- $ filters = $ finder ->find ('{locale}/admin/settings ' );
336
-
337
- $ expected = [
338
- 'before ' => ['csrf ' ],
339
- 'after ' => ['toolbar ' ],
340
- ];
341
- $ this ->assertSame ($ expected , $ filters );
342
- }
343
-
344
- public function testFindFiltersWithSupportedLocalesOnly (): void
345
- {
346
- $ collection = $ this ->createRouteCollection ();
347
- $ collection ->useSupportedLocalesOnly (true );
348
- $ collection ->get ('{locale}/admin/(:segment) ' , 'AdminController::index/$1 ' );
349
- Services::injectMock ('routes ' , $ collection );
350
- $ router = $ this ->createRouter ($ collection );
351
- $ filters = $ this ->createFilters ();
352
- $ finder = new FilterFinder ($ router , $ filters );
353
-
354
- $ filters = $ finder ->find ('{locale}/admin/settings ' );
355
-
356
- $ expected = [
357
- 'before ' => ['!csrf ' ],
358
- 'after ' => ['!toolbar ' ],
359
- ];
360
- $ this ->assertSame ($ expected , $ filters );
361
- }
362
317
}
0 commit comments