function FieldTestBase::clearViewsCaches in Views (for Drupal 7) 8.3
Clear all views caches and static caches which are required for the patch.
2 calls to FieldTestBase::clearViewsCaches()
- ApiDataTest::setUp in lib/
Drupal/ views/ Tests/ Field/ ApiDataTest.php - Sets up a Drupal site for running functional and integration tests.
- HandlerFieldFieldTest::setUp in lib/
Drupal/ views/ Tests/ Field/ HandlerFieldFieldTest.php - Sets up a Drupal site for running functional and integration tests.
File
- lib/
Drupal/ views/ Tests/ Field/ FieldTestBase.php, line 66 - Definition of Drupal\views\Test\Field\FieldTestBase.
Class
- FieldTestBase
- Provides some helper methods for testing fieldapi integration into views.
Namespace
Drupal\views\Tests\FieldCode
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');
}