function LocaleConfigSubscriberTest::testLocaleDeleteTranslation
Tests deleting community translations of shipped configuration.
File
-
core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberTest.php, line 180
Class
- LocaleConfigSubscriberTest
- Tests that shipped configuration translations are updated correctly.
Namespace
Drupal\Tests\locale\KernelCode
public function testLocaleDeleteTranslation() : void {
$config_name = 'locale_test.translation';
$this->deleteLocaleTranslationData($config_name, 'test', 'English test', 'de');
$this->assertNoTranslation($config_name, 'de');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.