function TranslationTest::resetCaches

Resets static caches to make the test code match the client-side behavior.

3 calls to TranslationTest::resetCaches()
TranslationTest::setUp in drupal/core/modules/translation/lib/Drupal/translation/Tests/TranslationTest.php
Sets up a Drupal site for running functional and integration tests.
TranslationTest::testLanguageSwitcherBlockIntegration in drupal/core/modules/translation/lib/Drupal/translation/Tests/TranslationTest.php
Tests that the language switcher block alterations work as intended.
TranslationTest::testLanguageSwitchLinks in drupal/core/modules/translation/lib/Drupal/translation/Tests/TranslationTest.php
Checks that the language switch links behave properly.

File

drupal/core/modules/translation/lib/Drupal/translation/Tests/TranslationTest.php, line 282
Definition of Drupal\translation\Tests\TranslationTest.

Class

TranslationTest
Functional tests for the Translation module.

Namespace

Drupal\translation\Tests

Code

function resetCaches() {
  drupal_static_reset('language_list');
  $this
    ->rebuildContainer();
}