function RouteProviderTest::providerDuplicateRoutePaths
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerDuplicateRoutePaths()
- 8.9.x core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerDuplicateRoutePaths()
- 10 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerDuplicateRoutePaths()
Data provider for testMixedCasePaths()
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Routing/ RouteProviderTest.php, line 261
Class
- RouteProviderTest
- Confirm that the default route provider is working correctly.
Namespace
Drupal\KernelTests\Core\RoutingCode
public static function providerDuplicateRoutePaths() {
// When matching routes with the same fit the route with the lowest-sorting
// name should end up first in the resulting route collection.
return [
[
'/path/one',
3,
'route_a',
],
[
'/PATH/one',
3,
'route_a',
],
[
'/path/two',
1,
'route_d',
],
[
'/PATH/three',
0,
],
[
'/place/meΦω',
2,
'route_e',
],
[
'/placE/meφΩ',
2,
'route_e',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.