diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/ModuleRouteSubscriberTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/ModuleRouteSubscriberTest.php index aea9434..0018ffd 100644 --- a/core/tests/Drupal/Tests/Core/EventSubscriber/ModuleRouteSubscriberTest.php +++ b/core/tests/Drupal/Tests/Core/EventSubscriber/ModuleRouteSubscriberTest.php @@ -69,7 +69,7 @@ public function testRemoveRoute($route_name, array $requirements, $removed) { $event = new RouteBuildEvent($collection, 'test'); $route_subscriber = new ModuleRouteSubscriber($this->moduleHandler); - $route_subscriber->removeRoutes($event); + $route_subscriber->onAlterRoutes($event); if ($removed) { $this->assertNull($collection->get($route_name));