function ConfigEntityValidationTestBase::setUpEnvironment
Sets up the environment shared by every test method in this class.
Runs once per test class instead of once per test method, and only when the shared environment has to be built. Does nothing by default.
Must be deterministic: what this creates is reused by every test method.
Overrides KernelTestBase::setUpEnvironment
33 calls to ConfigEntityValidationTestBase::setUpEnvironment()
- ActionValidationTest::setUpEnvironment in core/
modules/ system/ tests/ src/ Kernel/ Entity/ ActionValidationTest.php - Sets up the environment shared by every test method in this class.
- BaseFieldOverrideValidationTest::setUpEnvironment in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ BaseFieldOverrideValidationTest.php - Sets up the environment shared by every test method in this class.
- BlockContentTypeValidationTest::setUpEnvironment in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentTypeValidationTest.php - Sets up the environment shared by every test method in this class.
- BlockValidationTest::setUpEnvironment in core/
modules/ block/ tests/ src/ Kernel/ BlockValidationTest.php - Sets up the environment shared by every test method in this class.
- CommentTypeValidationTest::setUpEnvironment in core/
modules/ comment/ tests/ src/ Kernel/ CommentTypeValidationTest.php - Sets up the environment shared by every test method in this class.
32 methods override ConfigEntityValidationTestBase::setUpEnvironment()
- ActionValidationTest::setUpEnvironment in core/
modules/ system/ tests/ src/ Kernel/ Entity/ ActionValidationTest.php - Sets up the environment shared by every test method in this class.
- BaseFieldOverrideValidationTest::setUpEnvironment in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ BaseFieldOverrideValidationTest.php - Sets up the environment shared by every test method in this class.
- BlockContentTypeValidationTest::setUpEnvironment in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentTypeValidationTest.php - Sets up the environment shared by every test method in this class.
- BlockValidationTest::setUpEnvironment in core/
modules/ block/ tests/ src/ Kernel/ BlockValidationTest.php - Sets up the environment shared by every test method in this class.
- CommentTypeValidationTest::setUpEnvironment in core/
modules/ comment/ tests/ src/ Kernel/ CommentTypeValidationTest.php - Sets up the environment shared by every test method in this class.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigEntityValidationTestBase.php, line 120
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.