function RouteMatchTestBase::testGetRawParameters

Tests get raw parameters.

@legacy-covers ::getRawParameters @legacy-covers \Drupal\Core\Routing\RouteMatch::getParameterNames

Attributes

#[DataProvider('routeMatchProvider')]

File

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

Class

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

Namespace

Drupal\Tests\Core\Routing

Code

public function testGetRawParameters(RouteMatchInterface $route_match, Route $route, array $parameters, array $expected_filtered_parameters) : void {
  $this->assertSame($expected_filtered_parameters, $route_match->getRawParameters()
    ->all());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.