function FileUrlGeneratorTest::testGenerateAbsoluteStringMissingStreamWrapper

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

Tests missing stream handler.

File

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

Class

FileUrlGeneratorTest
Tests Drupal\Core\File\FileUrlGenerator.

Namespace

Drupal\KernelTests\Core\File

Code

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

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