function FileUrlGeneratorTest::testGenerateStringMissingStreamWrapper

Same name and namespace in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/File/FileUrlGeneratorTest.php \Drupal\KernelTests\Core\File\FileUrlGeneratorTest::testGenerateStringMissingStreamWrapper()
  2. 9 core/tests/Drupal/KernelTests/Core/File/FileUrlGeneratorTest.php \Drupal\KernelTests\Core\File\FileUrlGeneratorTest::testGenerateStringMissingStreamWrapper()

Tests missing stream handler.

@legacy-covers ::generateString

File

core/tests/Drupal/KernelTests/Core/File/FileUrlGeneratorTest.php, line 61

Class

FileUrlGeneratorTest
Tests Drupal\Core\File\FileUrlGenerator.

Namespace

Drupal\KernelTests\Core\File

Code

public function testGenerateStringMissingStreamWrapper() : void {
  $this->expectException(InvalidStreamWrapperException::class);
  $this->fileUrlGenerator
    ->generateString("foo://bar");
}

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