function KernelTestBase::config

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::config()
  2. 10 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::config()
  3. 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.

22 calls to KernelTestBase::config()
ConfigEntityNormalizeTest::testNormalize in core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
EntityUrlLanguageTest::setUp in core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
EntityUrlLanguageTest::testEntityUrlLanguageWithLanguageContentEnabled in core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
Ensures correct entity URLs with the method language-content-entity enabled.
LanguageNegotiatorPluginTest::testLanguageNegotiatorNoPlugin in core/modules/language/tests/src/Kernel/LanguageNegotiatorPluginTest.php
Tests for PluginNotFoundException.
MigrateDblogConfigsTest::testDblogSettings in core/modules/dblog/tests/src/Kernel/Migrate/d6/MigrateDblogConfigsTest.php
Tests migration of dblog variables to dblog.settings.yml.

... See full list

File

core/tests/Drupal/KernelTests/KernelTestBase.php, line 437

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\KernelTests

Code

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.