function UrlTransformRelativeTest::providerFileUrlTransformRelative
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php \Drupal\KernelTests\Core\File\UrlTransformRelativeTest::providerFileUrlTransformRelative()
- 10 core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php \Drupal\KernelTests\Core\File\UrlTransformRelativeTest::providerFileUrlTransformRelative()
- 11.x core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php \Drupal\KernelTests\Core\File\UrlTransformRelativeTest::providerFileUrlTransformRelative()
File
-
core/
tests/ Drupal/ KernelTests/ Core/ File/ UrlTransformRelativeTest.php, line 43
Class
- UrlTransformRelativeTest
- Tests url transform to relative.
Namespace
Drupal\KernelTests\Core\FileCode
public function providerFileUrlTransformRelative() {
$data = [];
$data[] = [
'example.com',
80,
'',
'http://example.com/page',
'/page',
];
$data[] = [
'example.com',
443,
'on',
'https://example.com/page',
'/page',
];
$data[] = [
'example.com',
8080,
'',
'https://example.com:8080/page',
'/page',
];
$data[] = [
'example.com',
8443,
'on',
'https://example.com:8443/page',
'/page',
];
$data[] = [
'example.com',
80,
'',
'http://exampleXcom/page',
'http://exampleXcom/page',
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.