protected function UrlHelperTest::dataEnhanceWithPrefix in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::dataEnhanceWithPrefix()
Enhances test urls with prefixes.
Parameters
array $urls: The list of urls.
Return value
array A list of provider data with prefixes.
2 calls to UrlHelperTest::dataEnhanceWithPrefix()
- UrlHelperTest::providerTestInvalidRelativeData in core/tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php 
- Provides data for testInvalidRelative().
- UrlHelperTest::providerTestValidRelativeData in core/tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php 
- Provides data for testValidRelative().
File
- core/tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php, line 472 
- Contains \Drupal\Tests\Component\Utility\UrlHelperTest.
Class
- UrlHelperTest
- @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
protected function dataEnhanceWithPrefix(array $urls) {
  $prefixes = array(
    '',
    '/',
  );
  $data = array();
  foreach ($prefixes as $prefix) {
    foreach ($urls as $url) {
      $data[] = array(
        $url,
        $prefix,
      );
    }
  }
  return $data;
}