Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin committed Dec 23, 2023
1 parent aba44b7 commit 65ef29b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/UrlGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion tests/UrlMatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

0 comments on commit 65ef29b

Please sign in to comment.