You are here

protected function KernelTestBase::registerStreamWrapper in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/KernelTestBase.php \Drupal\simpletest\KernelTestBase::registerStreamWrapper()

Registers a stream wrapper for this test.

Parameters

string $scheme: The scheme to register.

string $class: The fully qualified class name to register.

int $type: The Drupal Stream Wrapper API type. Defaults to StreamWrapperInterface::NORMAL.

2 calls to KernelTestBase::registerStreamWrapper()
FileTestBase::setUp in core/modules/system/src/Tests/File/FileTestBase.php
Performs setup tasks before each individual test method is run.
KernelTestBase::setUp in core/modules/simpletest/src/KernelTestBase.php
Performs setup tasks before each individual test method is run.

File

core/modules/simpletest/src/KernelTestBase.php, line 575
Contains \Drupal\simpletest\KernelTestBase.

Class

KernelTestBase
Base class for integration tests.

Namespace

Drupal\simpletest

Code

protected function registerStreamWrapper($scheme, $class, $type = StreamWrapperInterface::NORMAL) {
  $this->container
    ->get('stream_wrapper_manager')
    ->registerWrapper($scheme, $class, $type);
}