*/
protected function setUp() {
parent::setUp();
-
- // @todo Re-enable the test and only skip it when the translation cannot be
- // downloaded, or provide a translation as a fixture instead. See
- // https://www.drupal.org/project/drupal/issues/2828143.
- $this->markTestSkipped();
}
/**
// tests.
$this->config('locale.settings')
->set('translation.import_enabled', TRUE)
+ ->set('translation.use_source', LOCALE_TRANSLATION_USE_SOURCE_LOCAL)
->save();
// Add translation permissions now that the locale module has been enabled.
// tests.
$this->config('locale.settings')
->set('translation.import_enabled', TRUE)
+ ->set('translation.use_source', LOCALE_TRANSLATION_USE_SOURCE_LOCAL)
->save();
// Add predefined language.
$expected = [
'translatable_no_default' => 'This translation is preserved',
'translatable_default_with_translation' => 'This translation is preserved',
- 'translatable_default_with_no_translation' => 'This translation is preserved'
+ 'translatable_default_with_no_translation' => 'This translation is preserved',
];
$this->assertEqual($expected, $override->get());
}
// tests.
$this->config('locale.settings')
->set('translation.import_enabled', TRUE)
+ ->set('translation.use_source', LOCALE_TRANSLATION_USE_SOURCE_LOCAL)
->save();
// Add predefined language.
// tests.
$this->config('locale.settings')
->set('translation.import_enabled', TRUE)
+ ->set('translation.use_source', LOCALE_TRANSLATION_USE_SOURCE_LOCAL)
->save();
// Add predefined language.
$expected = [
'translatable_default_with_translation' => 'Locale can translate Afrikaans',
'translatable_no_default' => 'This translation is preserved',
- 'translatable_default_with_no_translation' => 'This translation is preserved'
+ 'translatable_default_with_no_translation' => 'This translation is preserved',
];
$this->assertEqual($expected, $override->get());
$override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
$expected = [
'translatable_no_default' => 'This translation is preserved',
- 'translatable_default_with_no_translation' => 'This translation is preserved'
+ 'translatable_default_with_no_translation' => 'This translation is preserved',
];
$this->assertEqual($expected, $override->get());
}