function BrowserTestBase::config
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
- 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
- 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
Configuration accessor for tests. Returns non-overridden configuration.
Parameters
string $name: Configuration name.
Return value
\Drupal\Core\Config\Config The configuration object with original configuration data.
29 calls to BrowserTestBase::config()
- BlockTest::testBlockCacheTags in core/
modules/ block/ tests/ src/ Functional/ BlockTest.php - Tests that cache tags are properly set and bubbled up to the page cache.
- BlockTest::testBlockThemeSelector in core/
modules/ block/ tests/ src/ Functional/ BlockTest.php - Tests that the block form has a theme selector when not passed via the URL.
- EntityReferenceFieldDefaultValueTest::testEntityReferenceDefaultValue in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ EntityReferenceFieldDefaultValueTest.php - Tests that default values are correctly translated to UUIDs in config.
- FormStoragePageCacheTest::setUp in core/
modules/ system/ tests/ src/ Functional/ Form/ FormStoragePageCacheTest.php - JsonApiUpdatePathTest::testUpdate9401 in core/
modules/ jsonapi/ tests/ src/ Functional/ Update/ JsonApiUpdatePathTest.php - Tests adding retry-after header settings.
File
-
core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 611
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
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.