public function LocaleConfigSubscriberTest::testLocaleDeleteTranslation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php \Drupal\locale\Tests\LocaleConfigSubscriberTest::testLocaleDeleteTranslation()
Tests deleting community translations of shipped configuration.
File
- core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php, line 167 - Contains \Drupal\locale\Tests\LocaleConfigSubscriberTest.
Class
- LocaleConfigSubscriberTest
- Tests that shipped configuration translations are updated correctly.
Namespace
Drupal\locale\TestsCode
public function testLocaleDeleteTranslation() {
$config_name = 'locale_test.translation';
$this
->deleteLocaleTranslationData($config_name, 'test', 'English test', 'de');
$this
->assertNoTranslation($config_name, 'de');
}