function ConfigEntityValidationTestBase::setUpEnvironment
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php \Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase::setUpEnvironment()
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigEntityValidationTestBase.php, line 116
Class
- ConfigEntityValidationTestBase
- Base class for testing validation of config entities.
Namespace
Drupal\KernelTests\Core\ConfigCode
protected function setUpEnvironment() : void {
$this->installConfig('system');
// Install Stark so we can add a legitimately installed theme to config
// dependencies.
$this->container
->get('theme_installer')
->install([
'stark',
]);
$this->container = $this->container
->get('kernel')
->getContainer();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.