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.
6 calls to BrowserTestBase::config()
- ConfigOtherModuleTest::testInstallOtherModuleFirst in core/
modules/ config/ tests/ src/ Functional/ ConfigOtherModuleTest.php - Tests enabling the provider of the default configuration first.
- DisplayTest::testAddDisplayBlockTranslation in core/
modules/ views_ui/ tests/ src/ FunctionalJavascript/ DisplayTest.php - Test if 'add' translations are filtered from multilingual display options.
- SerializationSettingsDeletionUpdateTest::testUpdate in core/
modules/ serialization/ tests/ src/ Functional/ Update/ SerializationSettingsDeletionUpdateTest.php - Ensures that update hook is run for "serialization" module.
- UpdateContribTest::testHookUpdateStatusAlter in core/
modules/ update/ tests/ src/ Functional/ UpdateContribTest.php - Checks that hook_update_status_alter() works to change a status.
- UpdateContribTest::testUpdateShowDisabledThemes in core/
modules/ update/ tests/ src/ Functional/ UpdateContribTest.php - Tests that disabled themes are only shown when desired.
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.