You are here

public function RouteMatchTestBase::testGetRouteObject in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 96
Contains \Drupal\Tests\Core\Routing\RouteMatchTestBase.

Class

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

Namespace

Drupal\Tests\Core\Routing

Code

public function testGetRouteObject(RouteMatchInterface $route_match, Route $route) {
  $this
    ->assertSame($route, $route_match
    ->getRouteObject());
}