function ViewsFieldApiTestHelper::clearViewsCaches

3.x views_fieldapi.test 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 89
Tests the fieldapi integration of viewsdata.

Class

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

Code

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');
}