protected function KernelTestBase::registerStreamWrapper in SimpleTest 8.3
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.
1 call to KernelTestBase::registerStreamWrapper()
- KernelTestBase::setUp in src/
KernelTestBase.php - Performs setup tasks before each individual test method is run.
File
- src/
KernelTestBase.php, line 620
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\simpletestCode
protected function registerStreamWrapper($scheme, $class, $type = StreamWrapperInterface::NORMAL) {
$this->container
->get('stream_wrapper_manager')
->registerWrapper($scheme, $class, $type);
}