public function LocaleConfigSubscriberForeignTest::testUpdateActiveTranslation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest::testUpdateActiveTranslation()
Tests updating translations of shipped configuration.
File
- core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberForeignTest.php, line 76 - Contains \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest.
Class
- LocaleConfigSubscriberForeignTest
- Tests default configuration handling with a foreign default language.
Namespace
Drupal\locale\TestsCode
public function testUpdateActiveTranslation() {
$config_name = 'locale_test.translation';
$this
->saveLanguageActive($config_name, 'test', 'Updated Hungarian test', 'hu');
$this
->assertTranslation($config_name, 'Updated Hungarian test', 'hu');
}