function 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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.