public function LocaleConfigTranslationTest::testOptionalConfiguration in Drupal 8
Same name and namespace in other branches
- 9 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);
}