function RouteBuilderTest::onRouteAlter

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\RouteBuilderTest::onRouteAlter()

File

core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php, line 358

Class

RouteBuilderTest
Tests Drupal\Core\Routing\RouteBuilder.

Namespace

Drupal\Tests\Core\Routing

Code

public function onRouteAlter(RouteBuildEvent $event) : void {
  $this->alterFired = TRUE;
  $this->assertEquals($event->getRouteCollection(), $this->expectedRouteCollection);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.