| 1 field_ui.test | protected FieldUIViewModeTestHelper::refreshVariables() | 
        
Overrides BackdropWebTestCase::refreshVariables().
Ensures that the entity and field display mode caches are cleared so they can be reliably checked in the test.
Overrides BackdropWebTestCase::refreshVariables
File
- core/
modules/ field_ui/ tests/ field_ui.test, line 900  - Tests for field_ui.module.
 
Class
- FieldUIViewModeTestHelper
 - Helper class for testing display mode functionality.
 
Code
protected function refreshVariables() {
  parent::refreshVariables();
  // Clear the entity and display caches.
  backdrop_static_reset('field_view_mode_settings');
  entity_info_cache_clear();
}