protected function LocaleConfigSubscriberTest::assertNoConfigOverride in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php \Drupal\locale\Tests\LocaleConfigSubscriberTest::assertNoConfigOverride()
Ensures configuration override is not present anymore.
Parameters
string $config_name: The configuration name.
string $langcode: The language code.
Return value
bool TRUE if the assertion succeeded, FALSE otherwise.
4 calls to LocaleConfigSubscriberTest::assertNoConfigOverride()
- LocaleConfigSubscriberForeignTest::testEnglish in core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberForeignTest.php - Tests that adding English creates a translation override.
- LocaleConfigSubscriberTest::deleteLanguageOverride in core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php - Deletes a language override.
- LocaleConfigSubscriberTest::deleteLocaleTranslationData in core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php - Deletes translation data from locale module.
- LocaleConfigSubscriberTest::setUpNoTranslation in core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php - Sets up a configuration string without a translation.
File
- core/
modules/ locale/ src/ Tests/ LocaleConfigSubscriberTest.php, line 383 - Contains \Drupal\locale\Tests\LocaleConfigSubscriberTest.
Class
- LocaleConfigSubscriberTest
- Tests that shipped configuration translations are updated correctly.
Namespace
Drupal\locale\TestsCode
protected function assertNoConfigOverride($config_name, $langcode) {
$config_langcode = $this->configFactory
->getEditable($config_name)
->get('langcode');
$override = $this->languageManager
->getLanguageConfigOverride($langcode, $config_name);
return $this
->assertNotEqual($config_langcode, $langcode) && $this
->assertEqual($override
->isNew(), TRUE);
}