$autoloader =
require $this->root . '/autoload.php';
$kernel = TestRunnerKernel::
createFromRequest($request,
$autoloader);
$kernel->
loadLegacyIncludes();
// Set the update URL. This must be set here rather than in
// self::__construct() or the old URL generator will leak additional test
// sites. Additionally, we need to prevent the path alias processor from
// running because we might not have a working alias system before running
// the updates.
$this->updateUrl = Url::
fromRoute('system.db_update',
[],
['path_processing' => FALSE
]);
$this->
setupBaseUrl();
// 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;
}