public function AcquiaSearchWebTestCase::setUp in Acquia Connector 7.3
Same name and namespace in other branches
- 7.2 acquia_search/tests/acquia_search.test \AcquiaSearchWebTestCase::setUp()
Overrides DrupalTestCase::setUp().
Overrides DrupalWebTestCase::setUp
File
- acquia_search/
tests/ acquia_search.test, line 463 - Tests for the Acquia Search module.
Class
- AcquiaSearchWebTestCase
- Tests the functionality of the Acquia Search module.
Code
public function setUp() {
parent::setUp('acquia_agent', 'acquia_connector_test', 'apachesolr', 'apachesolr_search', 'acquia_search');
// Generate and store a random set of credentials.
$this->id = $this
->randomName(10);
$this->key = $this
->randomName(32);
$this->salt = $this
->randomName(32);
$this->derivedKey = _acquia_search_create_derived_key($this->salt, $this->id, $this->key);
$subscription = array(
'timestamp' => REQUEST_TIME - 60,
'active' => '1',
);
variable_set('acquia_identifier', $this->id);
variable_set('acquia_key', $this->key);
variable_set('acquia_subscription_data', $subscription);
$environment = acquia_search_get_environment();
$this->url = $environment['url'];
}