public function HtmlTest::providerTestTransformRootRelativeUrlsToAbsoluteAssertion in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerTestTransformRootRelativeUrlsToAbsoluteAssertion()
- 10 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::providerTestTransformRootRelativeUrlsToAbsoluteAssertion()
Provides test data for testTransformRootRelativeUrlsToAbsoluteAssertion().
Return value
array Test data.
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 395
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function providerTestTransformRootRelativeUrlsToAbsoluteAssertion() {
return [
'only relative path' => [
'llama',
],
'only root-relative path' => [
'/llama',
],
'host and path' => [
'example.com/llama',
],
'scheme, host and path' => [
'http://example.com/llama',
],
];
}