function ConfigTranslationInstallTest::testConfigTranslation
Same name in other branches
- 9 core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationInstallTest::testConfigTranslation()
- 8.9.x core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationInstallTest::testConfigTranslation()
- 11.x core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationInstallTest::testConfigTranslation()
File
-
core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationInstallTest.php, line 67
Class
- ConfigTranslationInstallTest
- Installs the config translation module on a site installed in non english.
Namespace
Drupal\Tests\config_translation\FunctionalCode
public function testConfigTranslation() : void {
\Drupal::service('module_installer')->install([
'node',
'field_ui',
]);
$this->createContentType([
'type' => 'article',
]);
$this->drupalGet('admin/config/regional/language/add');
$this->submitForm([
'predefined_langcode' => 'en',
], 'Add custom language');
$this->drupalGet('admin/config/regional/language/add');
$this->submitForm([
'predefined_langcode' => 'fr',
], 'Add custom language');
$edit = [
'modules[config_translation][enable]' => TRUE,
];
$this->drupalGet('admin/modules');
$this->submitForm($edit, 'Install');
$this->drupalGet('/admin/structure/types/manage/article/fields');
$this->assertSession()
->statusCodeEquals(200);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.