function FileUploadSanitizeNameEventTest::provideFilenames
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php \Drupal\Tests\Core\File\FileUploadSanitizeNameEventTest::provideFilenames()
- 10 core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php \Drupal\Tests\Core\File\FileUploadSanitizeNameEventTest::provideFilenames()
Provides data for testEventFilenameFunctions().
Return value
array Arrays with original file name.
File
-
core/
tests/ Drupal/ Tests/ Core/ File/ FileUploadSanitizeNameEventTest.php, line 84
Class
- FileUploadSanitizeNameEventTest
- FileUploadSanitizeNameEvent tests.
Namespace
Drupal\Tests\Core\FileCode
public static function provideFilenames() {
return [
'ASCII filename with extension' => [
'example.txt',
],
'ASCII filename with complex extension' => [
'example.html.twig',
],
'ASCII filename with lots of dots' => [
'dotty.....txt',
],
'Unicode filename with extension' => [
'Ä Ö Ü Å Ø äöüåøhello.txt',
],
'Unicode filename without extension' => [
'Ä Ö Ü Å Ø äöüåøhello',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.