public function LanguageFormTest::testEditingLanguage in Lingotek Translation 8
Tests editing a defined language has the right locale.
File
- src/
Tests/ Form/ LanguageFormTest.php, line 58
Class
- LanguageFormTest
- Test the Drupal language form alters.
Namespace
Drupal\lingotek\Tests\FormCode
public function testEditingLanguage() {
ConfigurableLanguage::createFromLangcode('de')
->save();
$this
->drupalGet('/admin/config/regional/language');
// Click on edit for German.
$this
->clickLink('Edit', 1);
// Assert that the locale is correct.
$this
->assertFieldByName('lingotek_locale', 'de-DE', 'The Lingotek locale is set correctly.');
}