1.20.x translation.test | TranslationTestCase::resetCaches() |
Resets static caches to make the test code match the client-side behavior.
File
- modules/
translation/ tests/ translation.test, line 256 - Tests for the Translation module.
Class
- TranslationTestCase
- Functional tests for the Translation module.
Code
function resetCaches() {
backdrop_static_reset('language_list');
backdrop_static_reset('locale_url_outbound_alter');
backdrop_static_reset('locale_language_url_rewrite_url');
}