function LocaleConfigTranslationTest::testOptionalConfiguration
Same name in other branches
- 9 core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php \Drupal\Tests\locale\Functional\LocaleConfigTranslationTest::testOptionalConfiguration()
- 10 core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php \Drupal\Tests\locale\Functional\LocaleConfigTranslationTest::testOptionalConfiguration()
- 11.x core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php \Drupal\Tests\locale\Functional\LocaleConfigTranslationTest::testOptionalConfiguration()
Test translatability of optional configuration in locale.
File
-
core/
modules/ locale/ tests/ src/ Functional/ LocaleConfigTranslationTest.php, line 214
Class
- LocaleConfigTranslationTest
- Tests translation of configuration strings.
Namespace
Drupal\Tests\locale\FunctionalCode
public function testOptionalConfiguration() {
$this->assertNodeConfig(FALSE, FALSE);
// Enable the node module.
$this->drupalPostForm('admin/modules', [
'modules[node][enable]' => "1",
], t('Install'));
$this->drupalPostForm(NULL, [], t('Continue'));
$this->rebuildContainer();
$this->assertNodeConfig(TRUE, FALSE);
// Enable the views module (which node provides some optional config for).
$this->drupalPostForm('admin/modules', [
'modules[views][enable]' => "1",
], t('Install'));
$this->rebuildContainer();
$this->assertNodeConfig(TRUE, TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.