// After preparing the environment and changing the database prefix, we are
// in a valid test environment.
drupal_valid_test_ua($this->databasePrefix
);
// Reset settings.
new Settings([ // For performance, simply use the database prefix as hash salt.
'hash_salt' =>
$this->databasePrefix,
]);
Environment::
setTimeLimit($this->timeLimit
);
// Save and clean the shutdown callbacks array because it is static cached
// and will be changed by the test run. Otherwise it will contain callbacks
// from both environments and the testing environment will try to call the
// handlers defined by the original one.
$callbacks = &
drupal_register_shutdown_function();
$this->originalShutdownCallbacks =
$callbacks;
$callbacks =
[];
} /**
* Returns all supported database driver installer objects.
*
* This wraps drupal_get_database_types() for use without a current container.
*
* @return \Drupal\Core\Database\Install\Tasks[]
* An array of available database driver installer objects.
*/