public function FileUploadSanitizeNameEventTest::testEventFilenameFunctions in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php \Drupal\Tests\Core\File\FileUploadSanitizeNameEventTest::testEventFilenameFunctions()
Test event construction.
@dataProvider provideFilenames @covers ::__construct @covers ::getFilename
Parameters
string $filename: The filename to test
File
- core/
tests/ Drupal/ Tests/ Core/ File/ FileUploadSanitizeNameEventTest.php, line 71
Class
- FileUploadSanitizeNameEventTest
- FileUploadSanitizeNameEvent tests.
Namespace
Drupal\Tests\Core\FileCode
public function testEventFilenameFunctions(string $filename) {
$event = new FileUploadSanitizeNameEvent($filename, '');
$this
->assertSame($filename, $event
->getFilename());
}