You are here

public function LocaleConfigSubscriberTest::testLocaleUpdateTranslation 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::testLocaleUpdateTranslation()

Tests updating community translations of shipped configuration.

File

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

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\locale\Tests

Code

public function testLocaleUpdateTranslation() {
  $config_name = 'locale_test.translation';
  $this
    ->saveLocaleTranslationData($config_name, 'test', 'English test', 'Updated German test', 'de');
  $this
    ->assertTranslation($config_name, 'Updated German test', 'de', FALSE);
}