public function LocaleConfigSubscriberTest::testLocaleCreateTranslation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php \Drupal\locale\Tests\LocaleConfigSubscriberTest::testLocaleCreateTranslation()
Tests importing community translations of shipped configuration.
File
- core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php, line 124 - Contains \Drupal\locale\Tests\LocaleConfigSubscriberTest.
Class
- LocaleConfigSubscriberTest
- Tests that shipped configuration translations are updated correctly.
Namespace
Drupal\locale\TestsCode
public function testLocaleCreateTranslation() {
$config_name = 'locale_test.no_translation';
$this
->saveLocaleTranslationData($config_name, 'test', 'Test', 'Test (German)', 'de');
$this
->assertTranslation($config_name, 'Test (German)', 'de', FALSE);
}