// Prepare filesystem directory paths.
$this->publicFilesDirectory =
$this->siteDirectory . '/files';
$this->privateFilesDirectory =
$this->siteDirectory . '/private';
$this->tempFilesDirectory =
$this->siteDirectory . '/temp';
$this->translationFilesDirectory =
$this->siteDirectory . '/translations';
// Ensure the configImporter is refreshed for each test.
$this->configImporter = NULL;
// Unregister all custom stream wrappers of the parent site.
$wrappers = \Drupal::
service('stream_wrapper_manager'
)->
getWrappers(StreamWrapperInterface::ALL
);
foreach ($wrappers as $scheme =>
$info) { stream_wrapper_unregister($scheme);
} // Reset statics.
drupal_static_reset();
$this->container = NULL;
// Unset globals.
unset($GLOBALS['config'
]);