TestKernel.php in Drupal 8
File
core/lib/Drupal/Core/Test/TestKernel.php
View source
<?php
namespace Drupal\Core\Test;
use Drupal\Core\DrupalKernel;
class TestKernel extends DrupalKernel {
public function __construct($environment, $class_loader, $allow_dumping = TRUE) {
require_once __DIR__ . '/../../../../includes/bootstrap.inc';
if (!drupal_valid_test_ua()) {
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
exit;
}
parent::__construct($environment, $class_loader, $allow_dumping);
}
}
Classes
Name |
Description |
TestKernel |
Kernel to mock requests to test simpletest. |