You are here

public function AcquiaSearchWebTestCase::enableAcquiaSearchEnvironment in Acquia Connector 7.2

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

Enables the environment of Acquia Search and clears the static caches so that the change is reflected in the API functions.

3 calls to AcquiaSearchWebTestCase::enableAcquiaSearchEnvironment()
AcquiaSearchWebTestCase::testDefaultSearch in acquia_search/tests/acquia_search.test
Tests that Apache Solr search is set as the default search when the Acquia Search environment is enabled.
AcquiaSearchWebTestCase::testEnvironment in acquia_search/tests/acquia_search.test
Tests Acquia Search environment creation.
AcquiaSearchWebTestCase::testEnvironmentUI in acquia_search/tests/acquia_search.test
Tests that the Acquia Search environment shows up in the interface and that administrators cannot delete it.

File

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

Class

AcquiaSearchWebTestCase
Tests the functionality of the Acquia Search module.

Code

public function enableAcquiaSearchEnvironment() {

  // API function that creates the environemnt if it doesn't exist yet.
  acquia_search_enable_acquia_solr_environment();
  $this
    ->clearStaticCache();
}