function RouteProviderTest::providerMixedCaseRoutePaths
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerMixedCaseRoutePaths()
- 8.9.x core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerMixedCaseRoutePaths()
- 11.x core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerMixedCaseRoutePaths()
Data provider for testMixedCasePaths()
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Routing/ RouteProviderTest.php, line 212
Class
- RouteProviderTest
- Confirm that the default route provider is working correctly.
Namespace
Drupal\KernelTests\Core\RoutingCode
public static function providerMixedCaseRoutePaths() {
// cSpell:disable
return [
[
'/path/one',
'route_a',
],
[
'/path/two',
NULL,
],
[
'/PATH/one',
'route_a',
],
[
'/path/2/one',
'route_b',
'PUT',
],
[
'/paTH/3/one',
'route_b',
'PUT',
],
// There should be no lower case of a Hebrew letter.
[
'/somewhere/4/over/the/קainbow',
'route_c',
],
[
'/Somewhere/5/over/the/קainboW',
'route_c',
],
[
'/another/llama/aboUT/22',
'route_d',
],
[
'/another/llama/about/22',
'route_d',
],
[
'/place/meΦω',
'route_e',
'HEAD',
],
[
'/place/meφΩ',
'route_e',
'HEAD',
],
];
// cSpell:enable
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.