protected function KernelTestBase::config in Drupal 9
Same name and namespace in other branches
- 8 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.
82 calls to KernelTestBase::config()
- BlockConfigSchemaTest::testBlockConfigSchema in core/
modules/ block/ tests/ src/ Kernel/ BlockConfigSchemaTest.php - Tests the block config schema for block plugins.
- BookMultilingualTest::setUp in core/
modules/ book/ tests/ src/ Kernel/ BookMultilingualTest.php - BookPendingRevisionTest::testBookWithPendingRevisions in core/
modules/ book/ tests/ src/ Kernel/ BookPendingRevisionTest.php - Tests pending revision handling for books.
- BookUninstallTest::testBookUninstall in core/
modules/ book/ tests/ src/ Kernel/ BookUninstallTest.php - Tests the book_system_info_alter() method.
- CommandsTest::testAttachedSettings in core/
tests/ Drupal/ KernelTests/ Core/ Ajax/ CommandsTest.php - Regression test: Settings command exists regardless of JS aggregation.
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBase.php, line 430
Class
- KernelTestBase
- Base class for functional integration tests.
Namespace
Drupal\KernelTestsCode
protected function config($name) {
return $this->container
->get('config.factory')
->getEditable($name);
}