You are here

public function LocaleConfigSubscriberTest::testUpdateTranslation in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::testUpdateTranslation()

Tests updating translations of shipped configuration.

File

core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php, line 145

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\Tests\locale\Kernel

Code

public function testUpdateTranslation() {
  $config_name = 'locale_test.translation';
  $this
    ->saveLanguageOverride($config_name, 'test', 'Updated German test', 'de');
  $this
    ->assertTranslation($config_name, 'Updated German test', 'de');
}