You are here

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

Tests deleting community translations of shipped configuration.

File

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

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\Tests\locale\Kernel

Code

public function testLocaleDeleteTranslation() {
  $config_name = 'locale_test.translation';
  $this
    ->deleteLocaleTranslationData($config_name, 'test', 'English test', 'de');
  $this
    ->assertNoTranslation($config_name, 'de');
}