function TestRunnerKernel::__construct
Constructs a DrupalKernel object.
Parameters
string $environment: String indicating the environment, e.g. 'prod' or 'dev'.
\Composer\Autoload\ClassLoader $class_loader: The class loader. Normally \Composer\Autoload\ClassLoader, as included by the front controller, but may also be decorated.
bool $allow_dumping: (optional) FALSE to stop the container from being written to or read from disk. Defaults to TRUE.
string $app_root: (optional) The path to the application root as a string. If not supplied, the application root will be computed.
Overrides DrupalKernel::__construct
File
-
core/
lib/ Drupal/ Core/ Test/ TestRunnerKernel.php, line 26
Class
- TestRunnerKernel
- Defines a kernel used for running Functional tests and run-tests.sh.
Namespace
Drupal\Core\TestCode
public function __construct($environment, $class_loader, $allow_dumping = FALSE, $app_root = NULL) {
// Force $allow_dumping to FALSE, because the test runner kernel should
// always have to rebuild its container, and potentially avoid isolation
// issues against the tests.
parent::__construct($environment, $class_loader, FALSE, $app_root);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.