public function LocaleTranslationUiTest::testEnglishTranslation in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/locale/src/Tests/LocaleTranslationUiTest.php \Drupal\locale\Tests\LocaleTranslationUiTest::testEnglishTranslation()
Enable interface translation to English.
File
- core/
modules/ locale/ src/ Tests/ LocaleTranslationUiTest.php, line 33 - Contains \Drupal\locale\Tests\LocaleTranslationUiTest.
Class
- LocaleTranslationUiTest
- Adds a new locale and translates its name. Checks the validation of translation strings and search results.
Namespace
Drupal\locale\TestsCode
public function testEnglishTranslation() {
$admin_user = $this
->drupalCreateUser(array(
'administer languages',
'access administration pages',
));
$this
->drupalLogin($admin_user);
$this
->drupalPostForm('admin/config/regional/language/edit/en', array(
'locale_translate_english' => TRUE,
), t('Save language'));
$this
->assertLinkByHref('/admin/config/regional/translate?langcode=en', 0, 'Enabled interface translation to English.');
}