function RouteCompilerTest::testGetFit
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php \Drupal\Tests\Core\Routing\RouteCompilerTest::testGetFit()
- 8.9.x core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php \Drupal\Tests\Core\Routing\RouteCompilerTest::testGetFit()
- 10 core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php \Drupal\Tests\Core\Routing\RouteCompilerTest::testGetFit()
Tests RouteCompiler::getFit().
@dataProvider providerTestGetFit
Parameters
string $path: A path whose fit will be calculated in the test.
int $expected: The expected fit returned by RouteCompiler::getFit()
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteCompilerTest.php, line 28
Class
- RouteCompilerTest
- @coversDefaultClass \Drupal\Core\Routing\RouteCompiler @group Routing
Namespace
Drupal\Tests\Core\RoutingCode
public function testGetFit($path, $expected) : void {
$route_compiler = new RouteCompiler();
$result = $route_compiler->getFit($path);
$this->assertSame($expected, $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.