public function RouteCompilerTest::providerTestGetFit in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Routing/RouteCompilerTest.php \Drupal\Tests\Core\Routing\RouteCompilerTest::providerTestGetFit()
Provides data for RouteCompilerTest::testGetFit()
Return value
array An array of arrays, where each inner array has the path whose fit is to be calculated as the first value and the expected fit as the second value.
File
- core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteCompilerTest.php, line 45 - Contains \Drupal\Tests\Core\Routing\RouteCompilerTest.
Class
- RouteCompilerTest
- @coversDefaultClass \Drupal\Core\Routing\RouteCompiler @group Routing
Namespace
Drupal\Tests\Core\RoutingCode
public function providerTestGetFit() {
return array(
array(
'test',
1,
),
array(
'/testwithleadingslash',
1,
),
array(
'testwithtrailingslash/',
1,
),
array(
'/testwithslashes/',
1,
),
array(
'test/with/multiple/parts',
15,
),
array(
'test/with/{some}/slugs',
13,
),
array(
'test/very/long/path/that/drupal/7/could/not/have/handled',
2047,
),
);
}