diff --git a/core/modules/locale/src/Tests/LocaleLocaleLookupTest.php b/core/modules/locale/src/Tests/LocaleLocaleLookupTest.php index 4314bc5..68dc3b0 100644 --- a/core/modules/locale/src/Tests/LocaleLocaleLookupTest.php +++ b/core/modules/locale/src/Tests/LocaleLocaleLookupTest.php @@ -60,8 +60,10 @@ public function testLanguageFallbackDefaults() { // Ensure state of fallback languages persisted by // locale_test_language_fallback_candidates_locale_lookup_alter() is empty. $this->assertEqual(\Drupal::state()->get('locale.test_language_fallback_candidates_locale_lookup_alter_candidates'), array()); - // Make sure there is enough information provided for alters. - $this->assertEqual(\Drupal::state()->get('locale.test_language_fallback_candidates_locale_lookup_alter_context'), array('langcode' => 'fr', 'operation' => 'locale_lookup')); + // Make sure there is enough information provided for alter hooks. + $context = \Drupal::state()->get('locale.test_language_fallback_candidates_locale_lookup_alter_context'); + $this->assertEqual($context['langcode'], 'fr'); + $this->assertEqual($context['operation'], 'locale_lookup'); } }