You are here

public function AcquiaSearchWebTestCase::clearStaticCache in Acquia Connector 7.3

Same name and namespace in other branches
  1. 7.2 acquia_search/tests/acquia_search.test \AcquiaSearchWebTestCase::clearStaticCache()

Clear static cache.

Method to clear static caches that could interrupt with the simpletest procedures for Acquia Search.

1 call to AcquiaSearchWebTestCase::clearStaticCache()
AcquiaSearchWebTestCase::enableAcquiaSearchEnvironment in acquia_search/tests/acquia_search.test
Enable Acquia Search env.

File

acquia_search/tests/acquia_search.test, line 518
Tests for the Acquia Search module.

Class

AcquiaSearchWebTestCase
Tests the functionality of the Acquia Search module.

Code

public function clearStaticCache() {

  // Reset the static to test for bug where default environment was only set
  // on the current page load. We want to ensure the setting persists.
  // @see http://drupal.org/node/1784804
  drupal_static_reset('apachesolr_load_all_environments');
  drupal_static_reset('apachesolr_default_environment');
}