function BrowserTestBase::config
Same name in other branches
- 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
- 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::config()
- 10 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.
71 calls to BrowserTestBase::config()
- AjaxFormPageCacheTest::setUp in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxFormPageCacheTest.php - BasicAuthTest::testBasicAuth in core/
modules/ basic_auth/ tests/ src/ Functional/ BasicAuthTest.php - Tests http basic authentication.
- BlockContentTypeTest::testsBlockContentAddTypes in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTypeTest.php - Tests that redirects work as expected when multiple block types exist.
- 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.
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.