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