You are here

public function LocaleConfigSubscriberForeignTest::testLocaleCreateActiveTranslation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest::testLocaleCreateActiveTranslation()

Tests importing community translations of shipped configuration.

File

core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php, line 67
Contains \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest.

Class

LocaleConfigSubscriberForeignTest
Tests default configuration handling with a foreign default language.

Namespace

Drupal\locale\Tests

Code

public function testLocaleCreateActiveTranslation() {
  $config_name = 'locale_test.no_translation';
  $this
    ->saveLocaleTranslationData($config_name, 'test', 'Test', 'Test (Hungarian)', 'hu', TRUE);
  $this
    ->assertTranslation($config_name, 'Test (Hungarian)', 'hu', FALSE);
}