function UrlHelperTest::providerTestInvalidRelativeData

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

Provides data for testInvalidRelative().

Return value

array An array of invalid relative URLs.

File

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

Class

UrlHelperTest
Tests Drupal\Component\Utility\UrlHelper.

Namespace

Drupal\Tests\Component\Utility

Code

public static function providerTestInvalidRelativeData() : array {
  $data = [
    // cspell:disable-next-line
'ex^mple',
    'example<>',
    'ex%ample',
  ];
  return self::dataEnhanceWithPrefix($data);
}

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