public static function vfsStreamWrapper::setRoot in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php \org\bovigo\vfs\vfsStreamWrapper::setRoot()
sets the root content
Parameters
vfsStreamContainer $root:
Return value
18 calls to vfsStreamWrapper::setRoot()
- PermissionHandlerTest::testBuildPermissionsSortPerModule in core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php - Tests permissions sort inside a module.
- PermissionHandlerTest::testBuildPermissionsYaml in core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php - Tests permissions provided by YML files.
- PermissionHandlerTest::testBuildPermissionsYamlCallback in core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php - Tests dynamic callback permissions provided by YML files.
- PermissionHandlerTest::testPermissionsYamlStaticAndCallback in core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php - Tests a YAML file containing both static permissions and a callback.
- vfsStream::setup in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStream.php - helper method for setting up vfsStream in unit tests
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php, line 151
Class
- vfsStreamWrapper
- Stream wrapper to mock file system requests.
Namespace
org\bovigo\vfsCode
public static function setRoot(vfsStreamContainer $root) {
self::$root = $root;
clearstatcache();
return self::$root;
}