function FileUrlGeneratorTest::testGenerateMissingStreamWrapper
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/File/FileUrlGeneratorTest.php \Drupal\KernelTests\Core\File\FileUrlGeneratorTest::testGenerateMissingStreamWrapper()
- 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 44
Class
- FileUrlGeneratorTest
- @coversDefaultClass \Drupal\Core\File\FileUrlGenerator
Namespace
Drupal\KernelTests\Core\FileCode
public function testGenerateMissingStreamWrapper() : void {
$this->expectException(InvalidStreamWrapperException::class);
$result = $this->fileUrlGenerator
->generate("foo://bar");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.