function 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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.