You are here

public function LocaleConfigSubscriberTest::testCreateTranslation in Drupal 9

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

Tests creating translations of shipped configuration.

File

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

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\Tests\locale\Kernel

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