public function HtmlTest::providerTestTransformRootRelativeUrlsToAbsoluteAssertion in Drupal 9
Same name and namespace in other branches
- 8 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 399
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',
],
];
}