function TestKernel::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Test/TestKernel.php \Drupal\Core\Test\TestKernel::__construct()
- 10 core/lib/Drupal/Core/Test/TestKernel.php \Drupal\Core\Test\TestKernel::__construct()
- 11.x core/lib/Drupal/Core/Test/TestKernel.php \Drupal\Core\Test\TestKernel::__construct()
Overrides DrupalKernel::__construct
File
-
core/
lib/ Drupal/ Core/ Test/ TestKernel.php, line 15
Class
- TestKernel
- Kernel to mock requests to test simpletest.
Namespace
Drupal\Core\TestCode
public function __construct($environment, $class_loader, $allow_dumping = TRUE) {
// Include our bootstrap file.
require_once __DIR__ . '/../../../../includes/bootstrap.inc';
// Exit if we should be in a test environment but aren't.
if (!drupal_valid_test_ua()) {
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
exit;
}
parent::__construct($environment, $class_loader, $allow_dumping);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.