protected function LocaleConfigSubscriberTest::setUpNoTranslation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php \Drupal\locale\Tests\LocaleConfigSubscriberTest::setUpNoTranslation()
Sets up a configuration string without a translation.
The actual configuration is already available by installing locale_test module, as it is done in LocaleConfigSubscriberTest::setUp(). This sets up the necessary source string and verifies that everything is as expected to avoid false positives.
Parameters
string $config_name: The configuration name.
string $key: The configuration key.
string $source: The source string.
string $langcode: The language code.
1 call to LocaleConfigSubscriberTest::setUpNoTranslation()
- LocaleConfigSubscriberTest::setUpLocale in core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php - Sets up the locale storage strings to be in line with configuration.
File
- core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php, line 191 - Contains \Drupal\locale\Tests\LocaleConfigSubscriberTest.
Class
- LocaleConfigSubscriberTest
- Tests that shipped configuration translations are updated correctly.
Namespace
Drupal\locale\TestsCode
protected function setUpNoTranslation($config_name, $key, $source, $langcode) {
$this->localeConfigManager
->updateConfigTranslations(array(
$config_name,
), array(
$langcode,
));
$this
->assertNoConfigOverride($config_name, $key, $source, $langcode);
$this
->assertNoTranslation($config_name, $langcode);
}