public function FileUrlGeneratorTest::testGenerateMissingStreamWrapper in Drupal 9
Same name and namespace in other branches
- 10 core/tests/Drupal/KernelTests/Core/File/FileUrlGeneratorTest.php \Drupal\KernelTests\Core\File\FileUrlGeneratorTest::testGenerateMissingStreamWrapper()
Tests missing stream handler.
@covers ::generate
File
- core/
tests/ Drupal/ KernelTests/ Core/ File/ FileUrlGeneratorTest.php, line 40
Class
- FileUrlGeneratorTest
- @coversDefaultClass \Drupal\Core\File\FileUrlGenerator
Namespace
Drupal\KernelTests\Core\FileCode
public function testGenerateMissingStreamWrapper() {
$this
->expectException(InvalidStreamWrapperException::class);
$result = $this->fileUrlGenerator
->generate("foo://bar");
}