function RouteProviderTest::providerDuplicateRoutePaths

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerDuplicateRoutePaths()
  2. 10 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::providerDuplicateRoutePaths()
  3. 11.x 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 257

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.