public function UrlBagTest::dataProviderGetUriPart in Mini site 8
Data provider for getUriPart.
File
- tests/
src/ Kernel/ UrlBagTest.php, line 210
Class
- UrlBagTest
- Class UrlBagTest.
Namespace
Drupal\Tests\minisite\KernelCode
public function dataProviderGetUriPart() {
return [
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/file',
UrlBag::URI_PART_ASSET_DIR,
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5',
UrlBag::URI_PART_ASSET_DIR,
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a',
UrlBag::URI_PART_ASSET_DIR,
NULL,
TRUE,
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/file',
UrlBag::URI_PART_ROOT_ARCHIVE_DIR,
'subpath',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/file/',
UrlBag::URI_PART_ROOT_ARCHIVE_DIR,
'subpath',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a/subpath/file/',
UrlBag::URI_PART_ROOT_ARCHIVE_DIR,
NULL,
TRUE,
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/file',
UrlBag::URI_PART_PATH_IN_ARCHIVE,
'file',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/second/file',
UrlBag::URI_PART_PATH_IN_ARCHIVE,
'second/file',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/second/third/file',
UrlBag::URI_PART_PATH_IN_ARCHIVE,
'second/third/file',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/file/',
UrlBag::URI_PART_PATH_IN_ARCHIVE,
'file',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a/subpath/file/',
UrlBag::URI_PART_PATH_IN_ARCHIVE,
NULL,
TRUE,
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/file.txt',
UrlBag::URI_PART_BASENAME,
'file.txt',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a-23a7ff8b86c5/subpath/file/',
UrlBag::URI_PART_BASENAME,
'file',
],
[
'public://minisite/static/24c22dd1-2cf1-47ae-ac8a/subpath/file/',
UrlBag::URI_PART_BASENAME,
NULL,
TRUE,
],
];
}