You are here

public static function UrlHelperTest::providerTestEncodePath in Drupal 8

Same name and namespace in other branches
  1. 9 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()

Provides data for self::testEncodePath().

Return value

array

File

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

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