function FileUrlGeneratorTest::testGenerateStringMissingStreamWrapper
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/File/FileUrlGeneratorTest.php \Drupal\KernelTests\Core\File\FileUrlGeneratorTest::testGenerateStringMissingStreamWrapper()
- 11.x core/tests/Drupal/KernelTests/Core/File/FileUrlGeneratorTest.php \Drupal\KernelTests\Core\File\FileUrlGeneratorTest::testGenerateStringMissingStreamWrapper()
Tests missing stream handler.
@covers ::generateString
File
-
core/
tests/ Drupal/ KernelTests/ Core/ File/ FileUrlGeneratorTest.php, line 50
Class
- FileUrlGeneratorTest
- @coversDefaultClass \Drupal\Core\File\FileUrlGenerator
Namespace
Drupal\KernelTests\Core\FileCode
public function testGenerateStringMissingStreamWrapper() {
$this->expectException(InvalidStreamWrapperException::class);
$result = $this->fileUrlGenerator
->generateString("foo://bar");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.