function UrlHelperTest::providerTestEncodePath

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::providerTestEncodePath()
  2. 10 core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::providerTestEncodePath()
  3. 11.x core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::providerTestEncodePath()

Provides data for self::testEncodePath().

Return value

array

File

core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php, line 375

Class

UrlHelperTest
@group Utility

Namespace

Drupal\Tests\Component\Utility

Code

public static function providerTestEncodePath() {
    return [
        [
            'unencoded path with spaces',
            'unencoded%20path%20with%20spaces',
        ],
        [
            'slashes/should/be/preserved',
            'slashes/should/be/preserved',
        ],
    ];
}

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