function RouteMatchTestBase::testGetRouteName
Tests get route name.
@legacy-covers ::getRouteName
Attributes
#[DataProvider('routeMatchProvider')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteMatchTestBase.php, line 88
Class
- RouteMatchTestBase
- Base test class for testing classes implementing the route match interface.
Namespace
Drupal\Tests\Core\RoutingCode
public function testGetRouteName(RouteMatchInterface $route_match) : void {
$this->assertSame('test_route', $route_match->getRouteName());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.