You are here

public function SearchApiAcquiaUnitTestCase::setUp in Acquia Search for Search API 7.2

Overrides DrupalTestCase::setUp().

Overrides DrupalUnitTestCase::setUp

File

tests/search_api_acquia.test, line 29
Tests for the Search API Acquia module.

Class

SearchApiAcquiaUnitTestCase
Unit tests of the functionality of the Search API Acquia module.

Code

public function setUp() {
  parent::setUp();
  require_once dirname(dirname(__FILE__)) . '/search_api_acquia.module';

  // Generate and store a random set of credentials.
  // Make them as close to the production values as possible
  // Something like AAAA-1234
  $this->id = $this
    ->randomName(10);

  // Most of the keys and salts have a 32char lenght
  $this->key = $this
    ->randomName(32);
}