You are here

public function RouteProviderTest::providerDuplicateRoutePaths in Drupal 9

Same name and namespace in other branches
  1. 8 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 259
Contains \Drupal\KernelTests\Core\Routing\RouteProviderTest.

Class

RouteProviderTest
Confirm that the default route provider is working correctly.

Namespace

Drupal\KernelTests\Core\Routing

Code

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',
    ],
  ];
}