| 1 locale.test | protected LocaleLanguageNegotiationInfoFunctionalTest::languageNegotiationUpdate($op = 'enable') | 
Update language types/negotiation information.
Manually invoke locale_modules_enabled()/locale_modules_disabled() since they would not be invoked after enabling/disabling locale_test the first time.
File
- core/modules/ locale/ tests/ locale.test, line 2899 
- Tests for locale.module.
Class
- LocaleLanguageNegotiationInfoFunctionalTest
- Functional test for language types/negotiation info.
Code
protected function languageNegotiationUpdate($op = 'enable') {
  static $last_op = NULL;
  $modules = array('locale_test');
  // Enable/disable locale_test only if we did not already before.
  if ($last_op != $op) {
    $function = "module_{$op}";
    $function($modules);
    // Reset hook implementation cache.
    module_implements_reset();
  }
  backdrop_static_reset('language_types_info');
  backdrop_static_reset('language_negotiation_info');
  backdrop_static_reset('language_types_get_configurable');
  $function = "language_modules_{$op}d";
  if (function_exists($function)) {
    $function($modules);
  }
  $this->backdropGet('admin/config/regional/language/detection');
}
