function ViewsFieldApiTestHelper::clearViewsCaches

Clear all views caches and static caches which are required for the patch.

2 calls to ViewsFieldApiTestHelper::clearViewsCaches()
viewsFieldApiDataTest::setUp in tests/field/views_fieldapi.test
Sets up a Drupal site for running functional and integration tests.
viewsHandlerFieldFieldTest::setUp in tests/field/views_fieldapi.test
Sets up a Drupal site for running functional and integration tests.

File

tests/field/views_fieldapi.test, line 102

Class

ViewsFieldApiTestHelper
Provides some helper methods for testing fieldapi integration into views.

Code

public function clearViewsCaches() {
    // Reset views data cache.
    drupal_static_reset('_views_fetch_data_cache');
    drupal_static_reset('_views_fetch_data_recursion_protected');
    drupal_static_reset('_views_fetch_data_fully_loaded');
}