function ConfigEntityValidationTestBase::setUp
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php \Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase::setUp()
Overrides KernelTestBase::setUp
31 calls to ConfigEntityValidationTestBase::setUp()
- ActionValidationTest::setUp in core/
modules/ system/ tests/ src/ Kernel/ Entity/ ActionValidationTest.php - BaseFieldOverrideValidationTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ BaseFieldOverrideValidationTest.php - BlockContentTypeValidationTest::setUp in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentTypeValidationTest.php - BlockValidationTest::setUp in core/
modules/ block/ tests/ src/ Kernel/ BlockValidationTest.php - CommentTypeValidationTest::setUp in core/
modules/ comment/ tests/ src/ Kernel/ CommentTypeValidationTest.php
31 methods override ConfigEntityValidationTestBase::setUp()
- ActionValidationTest::setUp in core/
modules/ system/ tests/ src/ Kernel/ Entity/ ActionValidationTest.php - BaseFieldOverrideValidationTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ BaseFieldOverrideValidationTest.php - BlockContentTypeValidationTest::setUp in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentTypeValidationTest.php - BlockValidationTest::setUp in core/
modules/ block/ tests/ src/ Kernel/ BlockValidationTest.php - CommentTypeValidationTest::setUp in core/
modules/ comment/ tests/ src/ Kernel/ CommentTypeValidationTest.php
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigEntityValidationTestBase.php, line 88
Class
- ConfigEntityValidationTestBase
- Base class for testing validation of config entities.
Namespace
Drupal\KernelTests\Core\ConfigCode
protected function setUp() : void {
parent::setUp();
$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.