// Install Drupal test site.
$this->
prepareEnvironment();
$this->
runDbTasks();
// We are going to set a missing zlib requirement property for usage
// during the performUpgrade() and tearDown() methods. Also set that the
// tests failed.
if (!
$this->zlibInstalled
) { parent::
setUp();
return;
} $this->
installDrupal();
// Add the config directories to settings.php.
$sync_directory = Settings::
get('config_sync_directory'
);
\Drupal::
service('file_system'
)->
prepareDirectory($sync_directory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS
);
// Ensure the default temp directory exist and is writable. The configured
// temp directory may be removed during update.
\Drupal::
service('file_system'
)->
prepareDirectory($this->tempFilesDirectory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS
);
// Set the container. parent::rebuildAll() would normally do this, but this
// not safe to do here, because the database has not been updated yet.