function 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.
1 call to KernelTestBase::registerStreamWrapper()
- 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 626
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.