You are here

public function AcquiaSearchWebTestCase::clearStaticCache in Acquia Connector 7.2

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

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
Enables the environment of Acquia Search and clears the static caches so that the change is reflected in the API functions.

File

acquia_search/tests/acquia_search.test, line 452
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');
}