diff --git a/core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php b/core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php index 4564a5a..376ec44 100644 --- a/core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php +++ b/core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php @@ -8,6 +8,7 @@ namespace Drupal\locale\Tests; use Drupal\language\Entity\ConfigurableLanguage; +use Drupal\locale\Locale; use Drupal\locale\StringInterface; use Drupal\locale\TranslationString; use Drupal\simpletest\KernelTestBase; @@ -69,7 +70,12 @@ protected function setUp() { $this->installConfig(['locale_test']); // Simulate this hook invoked which would happen if in a non-kernel test // or normal environment. - locale_modules_installed(array('locale_test')); + // @see locale_modules_installed() + // @see locale_system_update() + locale_system_set_config_langcodes(); + $langcodes = array_keys(\Drupal::languageManager()->getLanguages()); + $names = \Drupal\locale\Locale::config()->getComponentNames(); + Locale::config()->updateConfigTranslations($names, $langcodes); $this->configFactory = $this->container->get('config.factory'); $this->stringStorage = $this->container->get('locale.storage');