function KernelTestBase::config
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::config()
- 10 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::config()
- 9 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::config()
- 8.9.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::config()
Configuration accessor for tests. Returns non-overridden configuration.
Parameters
string $name: The configuration name.
Return value
\Drupal\Core\Config\Config The configuration object with original configuration data.
37 calls to KernelTestBase::config()
- ConfigOtherModuleTest::testInstallOtherModuleFirst in core/
modules/ config/ tests/ src/ Kernel/ ConfigOtherModuleTest.php - Tests enabling the provider of the default configuration first.
- ContentTranslationConfigImportTest::testConfigImportUpdates in core/
modules/ content_translation/ tests/ src/ Kernel/ ContentTranslationConfigImportTest.php - Tests config import updates.
- EntityDisplayTest::testBaseFieldComponent in core/
modules/ field_ui/ tests/ src/ Kernel/ EntityDisplayTest.php - Tests the behavior of a field component for a base field.
- EntityFormDisplayTest::testBaseFieldComponent in core/
modules/ field_ui/ tests/ src/ Kernel/ EntityFormDisplayTest.php - Tests the behavior of a field component for a base field.
- EntityUrlLanguageTest::setUp in core/
modules/ language/ tests/ src/ Kernel/ EntityUrlLanguageTest.php
File
-
core/
tests/ Drupal/ KernelTests/ KernelTestBase.php, line 432
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTestsCode
protected function config($name) {
return $this->container
->get('config.factory')
->getEditable($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.