function RouteMatchTestBase::testGetRouteObject
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::testGetRouteObject()
- 8.9.x core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::testGetRouteObject()
- 11.x core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::testGetRouteObject()
@covers ::getRouteObject @dataProvider routeMatchProvider
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteMatchTestBase.php, line 95
Class
- RouteMatchTestBase
- Base test class for testing classes implementing the route match interface.
Namespace
Drupal\Tests\Core\RoutingCode
public function testGetRouteObject(RouteMatchInterface $route_match, Route $route) : void {
$this->assertSame($route, $route_match->getRouteObject());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.