You are here

protected function RouteMatchTest::getRouteMatch in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php \Drupal\Tests\Core\Routing\RouteMatchTest::getRouteMatch()
  2. 9 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.

\Symfony\Component\Routing\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 20

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);
}