function RouteMatchTestBase::testGetRouteName

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::testGetRouteName()
  2. 10 core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::testGetRouteName()
  3. 11.x core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::testGetRouteName()

@covers ::getRouteName @dataProvider routeMatchProvider

File

core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php, line 83

Class

RouteMatchTestBase
Base test class for testing classes implementing the route match interface.

Namespace

Drupal\Tests\Core\Routing

Code

public function testGetRouteName(RouteMatchInterface $route_match) {
    $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.