You are here

public function LocaleConfigSubscriberTest::testCreateTranslation in Zircon Profile 8

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

Tests creating translations of shipped configuration.

File

core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php, line 114
Contains \Drupal\locale\Tests\LocaleConfigSubscriberTest.

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\locale\Tests

Code

public function testCreateTranslation() {
  $config_name = 'locale_test.no_translation';
  $this
    ->saveLanguageOverride($config_name, 'test', 'Test (German)', 'de');
  $this
    ->assertTranslation($config_name, 'Test (German)', 'de');
}