function BrowserTestBase::config
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
- 11.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.
50 calls to BrowserTestBase::config()
- ActionConfigTest::testUpdateActionPlugins in core/
modules/ action/ tests/ src/ Functional/ Update/ ActionConfigTest.php - Tests upgrading action settings.
- BlockContentTypeTest::testsBlockContentAddTypes in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTypeTest.php - Tests that redirects work as expected when multiple block types exist.
- ConfigImportAllTest::testInstallUninstall in core/
modules/ config/ tests/ src/ Functional/ ConfigImportAllTest.php - Tests that a fixed set of modules can be installed and uninstalled.
- ConfigInstallProfileOverrideTest::testInstallProfileConfigOverwrite in core/
modules/ config/ tests/ src/ Functional/ ConfigInstallProfileOverrideTest.php - Tests install profile config changes.
- ConfigInstallWebTest::testIntegrationModuleReinstallation in core/
modules/ config/ tests/ src/ Functional/ ConfigInstallWebTest.php - Tests module re-installation.
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.