public function AcquiaSearchWebTestCase::clearStaticCache in Acquia Search 6.3
Method to clear static caches that could interrupt with the simpletest procedures for Acquia Search.
2 calls to AcquiaSearchWebTestCase::clearStaticCache()
- AcquiaSearchWebTestCase::testEnvironment in tests/
acquia_search.test - Tests Acquia Search environment creation.
- AcquiaSearchWebTestCase::testEnvironmentUI in tests/
acquia_search.test - Tests that the Acquia Search environment shows up in the interface and that administrators cannot delete it.
File
- tests/
acquia_search.test, line 159
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
apachesolr_default_environment(NULL, TRUE);
apachesolr_load_all_environments(TRUE);
}