Update language types/negotiation information.
Manually invoke language_modules_enabled()/language_modules_disabled() since they would not be invoked after enabling/disabling language_test the first time.
protected function languageNegotiationUpdate($op = 'enable') {
static $last_op = NULL;
$modules = array(
'language_test',
);
// Enable/disable language_test only if we did not already before.
if ($last_op != $op) {
$function = "module_{$op}";
$function($modules);
// Reset hook implementation cache.
module_implements_reset();
}
drupal_static_reset('language_types_info');
drupal_static_reset('language_negotiation_info');
$function = "language_modules_{$op}d";
if (function_exists($function)) {
$function($modules);
}
$this
->drupalGet('admin/config/regional/language/detection');
}