1 field_views.test | FieldViewsTestHelper::clearViewsCaches() |
Clear all views caches and static caches which are required for the patch.
File
- core/
modules/ field/ tests/ field_views.test, line 90 - Tests the Views integration with Field API.
Class
- FieldViewsTestHelper
- Provides some helper methods for testing fieldapi integration into views.
Code
function clearViewsCaches() {
// Reset views data cache.
backdrop_static_reset('_views_fetch_data_cache');
backdrop_static_reset('_views_fetch_data_recursion_protected');
backdrop_static_reset('_views_fetch_data_fully_loaded');
}