diff -u b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php --- b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php +++ b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php @@ -182,7 +182,8 @@ // Uninstall the module. $this->drupalPostForm('admin/modules/uninstall', array('uninstall[image]' => "image"), t('Uninstall')); $this->drupalPostForm(NULL, array(), t('Uninstall')); - + // After the uninstall we should reinitialize the languageManager property. + $this->languageManager = $this->container->get('language_manager'); // Ensure that the translated configuration has been removed. $override = $this->languageManager->getLanguageConfigOverride('xx', 'image.style.medium'); $this->assertTrue($override->isNew(), 'Translated configuration for image module removed.');