public function UrlTransformRelativeTest::providerFileUrlTransformRelative in Drupal 8
Same name and namespace 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()
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;
}