You are here

public function FileUploadSanitizeNameEventTest::testStopPropagation in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php \Drupal\Tests\Core\File\FileUploadSanitizeNameEventTest::testStopPropagation()

@covers ::stopPropagation

File

core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php, line 105

Class

FileUploadSanitizeNameEventTest
FileUploadSanitizeNameEvent tests.

Namespace

Drupal\Tests\Core\File

Code

public function testStopPropagation() {
  $this
    ->expectException(\RuntimeException::class);
  $event = new FileUploadSanitizeNameEvent('test.txt', '');
  $event
    ->stopPropagation();
}