You are here

protected function EntityViewModeTestHelper::refreshVariables in Entity view modes 7

Overrides DrupalWebTestCase::refreshVariables().

Ensures that the entity and field view mode caches are cleared so they can be reliably checked in the test.

Overrides DrupalWebTestCase::refreshVariables

1 call to EntityViewModeTestHelper::refreshVariables()
EntityViewModeFunctionalTest::testInfoHooks in ./entity_view_mode.test
Test the new entity view mode hooks.

File

./entity_view_mode.test, line 31
Test integration for the entity_view_mode module.

Class

EntityViewModeTestHelper
@file Test integration for the entity_view_mode module.

Code

protected function refreshVariables() {
  parent::refreshVariables();

  // Clear the entity and display caches.
  drupal_static_reset('field_view_mode_settings');
  entity_info_cache_clear();
}