function RouteProviderTest::providerDuplicateRoutePaths
Data provider for testMixedCasePaths()
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ Routing/ RouteProviderTest.php, line 265 
Class
- RouteProviderTest
- Confirm that the default route provider is working correctly.
Namespace
Drupal\KernelTests\Core\RoutingCode
public 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.
