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