diff --git a/tests/UrlGeneratorTest.php b/tests/UrlGeneratorTest.php index a442687..ab3bb2a 100644 --- a/tests/UrlGeneratorTest.php +++ b/tests/UrlGeneratorTest.php @@ -866,7 +866,7 @@ private function createRouteCollection(array $routes): RouteCollectionInterface { $rootGroup = Group::create()->routes(...$routes); $collector = new RouteCollector(); - $collector->addRoute($rootGroup); + $collector->addGroup($rootGroup); return new RouteCollection($collector); } } diff --git a/tests/UrlMatcherTest.php b/tests/UrlMatcherTest.php index c3367e7..ed67a97 100644 --- a/tests/UrlMatcherTest.php +++ b/tests/UrlMatcherTest.php @@ -491,7 +491,7 @@ private function createUrlMatcher(array $routes, CacheInterface $cache = null): { $rootGroup = Group::create()->routes(...$routes); $collector = new RouteCollector(); - $collector->addRoute($rootGroup); + $collector->addGroup($rootGroup); return new UrlMatcher(new RouteCollection($collector), $cache, ['cache_key' => 'route-cache']); } }