You are here

public function ConfigTranslationInstallTest::testConfigTranslation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config_translation/src/Tests/ConfigTranslationInstallTest.php \Drupal\config_translation\Tests\ConfigTranslationInstallTest::testConfigTranslation()

File

core/modules/config_translation/src/Tests/ConfigTranslationInstallTest.php, line 66
Contains \Drupal\config_translation\Tests\ConfigTranslationInstallTest.

Class

ConfigTranslationInstallTest
Installs the config translation module on a site installed in non english.

Namespace

Drupal\config_translation\Tests

Code

public function testConfigTranslation() {
  $this
    ->drupalPostForm('admin/config/regional/language/add', [
    'predefined_langcode' => 'en',
  ], t('Add custom language'));
  $this
    ->drupalPostForm('admin/config/regional/language/add', [
    'predefined_langcode' => 'fr',
  ], t('Add custom language'));
  $edit = [
    'modules[Multilingual][config_translation][enable]' => TRUE,
  ];
  $this
    ->drupalPostForm('admin/modules', $edit, t('Install'));
  $this
    ->drupalGet('/admin/structure/types/manage/article/fields');
  $this
    ->assertResponse(200);
}