protected function KernelTestBase::prepareTemplate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::prepareTemplate()
File
- core/tests/Drupal/KernelTests/KernelTestBase.php, line 1027
- Contains \Drupal\KernelTests\KernelTestBase.
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTests
Code
protected function prepareTemplate(\Text_Template $template) {
$bootstrap_globals = '';
$bootstrap_globals .= '$__PHPUNIT_BOOTSTRAP = ' . var_export($GLOBALS['__PHPUNIT_BOOTSTRAP'], TRUE) . ";\n";
$bootstrap_globals .= '$namespaces = ' . var_export($GLOBALS['namespaces'], TRUE) . ";\n";
$template
->setVar(array(
'constants' => '',
'included_files' => '',
'globals' => $bootstrap_globals,
));
}