@@ -496,7 +496,7 @@ public function testRouteWorksWithFilters(): void
496496
497497 $ this ->assertSame ('\TestController ' , $ router ->controllerName ());
498498 $ this ->assertSame ('foobar ' , $ router ->methodName ());
499- $ this ->assertSame ('test ' , $ router ->getFilter ());
499+ $ this ->assertSame ([ 'test ' ] , $ router ->getFilters ());
500500 }
501501
502502 /**
@@ -526,25 +526,25 @@ static function (RouteCollection $routes): void {
526526
527527 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
528528 $ this ->assertSame ('index ' , $ router ->methodName ());
529- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
529+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
530530
531531 $ router ->handle ('api/posts/new ' );
532532
533533 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
534534 $ this ->assertSame ('new ' , $ router ->methodName ());
535- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
535+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
536536
537537 $ router ->handle ('api/posts/50 ' );
538538
539539 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
540540 $ this ->assertSame ('show ' , $ router ->methodName ());
541- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
541+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
542542
543543 $ router ->handle ('api/posts/50/edit ' );
544544
545545 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
546546 $ this ->assertSame ('edit ' , $ router ->methodName ());
547- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
547+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
548548
549549 // POST
550550 $ this ->collection ->group (...$ group );
@@ -556,7 +556,7 @@ static function (RouteCollection $routes): void {
556556
557557 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
558558 $ this ->assertSame ('create ' , $ router ->methodName ());
559- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
559+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
560560
561561 // PUT
562562 $ this ->collection ->group (...$ group );
@@ -568,7 +568,7 @@ static function (RouteCollection $routes): void {
568568
569569 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
570570 $ this ->assertSame ('update ' , $ router ->methodName ());
571- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
571+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
572572
573573 // PATCH
574574 $ this ->collection ->group (...$ group );
@@ -580,7 +580,7 @@ static function (RouteCollection $routes): void {
580580
581581 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
582582 $ this ->assertSame ('update ' , $ router ->methodName ());
583- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
583+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
584584
585585 // DELETE
586586 $ this ->collection ->group (...$ group );
@@ -592,7 +592,7 @@ static function (RouteCollection $routes): void {
592592
593593 $ this ->assertSame ('\App\Controllers\Api\PostController ' , $ router ->controllerName ());
594594 $ this ->assertSame ('delete ' , $ router ->methodName ());
595- $ this ->assertSame ('api-auth ' , $ router ->getFilter ());
595+ $ this ->assertSame ([ 'api-auth ' ] , $ router ->getFilters ());
596596 }
597597
598598 public function testRouteWorksWithClassnameFilter (): void
@@ -606,16 +606,13 @@ public function testRouteWorksWithClassnameFilter(): void
606606
607607 $ this ->assertSame ('\TestController ' , $ router ->controllerName ());
608608 $ this ->assertSame ('foo ' , $ router ->methodName ());
609- $ this ->assertSame (Customfilter::class, $ router ->getFilter ());
609+ $ this ->assertSame ([ Customfilter::class] , $ router ->getFilters ());
610610
611611 $ this ->resetServices ();
612612 }
613613
614614 public function testRouteWorksWithMultipleFilters (): void
615615 {
616- $ feature = config ('Feature ' );
617- $ feature ->multipleFilters = true ;
618-
619616 $ collection = $ this ->collection ;
620617
621618 $ collection ->add ('foo ' , 'TestController::foo ' , ['filter ' => ['filter1 ' , 'filter2:param ' ]]);
@@ -626,8 +623,6 @@ public function testRouteWorksWithMultipleFilters(): void
626623 $ this ->assertSame ('\TestController ' , $ router ->controllerName ());
627624 $ this ->assertSame ('foo ' , $ router ->methodName ());
628625 $ this ->assertSame (['filter1 ' , 'filter2:param ' ], $ router ->getFilters ());
629-
630- $ feature ->multipleFilters = false ;
631626 }
632627
633628 /**
0 commit comments