You are here

protected function RouteMatchTest::getRouteMatch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php \Drupal\Tests\Core\Routing\RouteMatchTest::getRouteMatch()

Build a test route match object for the given implementation.

Parameters

$name: Route name.

Route $route: Request object

array $parameters: Parameters array

$raw_parameters: Raw parameters array

Return value

\Drupal\Core\Routing\RouteMatchInterface

Overrides RouteMatchTestBase::getRouteMatch

File

core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php, line 25
Contains \Drupal\Tests\Core\Routing\RouteMatchTest.

Class

RouteMatchTest
@coversDefaultClass \Drupal\Core\Routing\RouteMatch @group Routing

Namespace

Drupal\Tests\Core\Routing

Code

protected function getRouteMatch($name, Route $route, array $parameters, array $raw_parameters) {
  return new RouteMatch($name, $route, $parameters, $raw_parameters);
}