You are here

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

Tests updating translations of shipped configuration.

File

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

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\locale\Tests

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');
}