You are here

function Drupali18nTestCase::resetCaches in Internationalization 7

Reset static caches to make the test code match the client site behavior.

1 call to Drupali18nTestCase::resetCaches()
Drupali18nTestCase::setUpLanguages in ./i18n.test

File

./i18n.test, line 362
Base class for Internationalization tests

Class

Drupali18nTestCase
@file Base class for Internationalization tests

Code

function resetCaches() {
  drupal_static_reset('locale_url_outbound_alter');
  drupal_static_reset('language_list');
  drupal_language_initialize();
}