You are here

public function AcquiaSPITestCase::setUp in Acquia Connector 7.3

Same name and namespace in other branches
  1. 7.2 acquia_spi/tests/acquia_spi.test \AcquiaSPITestCase::setUp()

Needs comment.

Overrides DrupalWebTestCase::setUp

File

acquia_spi/tests/acquia_spi.test, line 106

Class

AcquiaSPITestCase
Tests the functionality of the Acquia SPI module.

Code

public function setUp() {
  global $base_url;

  // Enable any modules required for the test.
  parent::setUp('acquia_agent', 'acquia_spi', 'acquia_connector_test', 'dblog');

  // Create and log in our privileged user.
  $this->privilegedUser = $this
    ->drupalCreateUser(array(
    'administer site configuration',
    'access administration pages',
  ));
  $this
    ->drupalLogin($this->privilegedUser);

  // Setup variables.
  $this->credentialsPath = 'admin/config/system/acquia-agent/credentials';
  $this->settingsPath = 'admin/config/system/acquia-agent';
  $this->statusReportUrl = 'admin/reports/status';
  variable_set('acquia_network_address', $base_url);
  variable_set('acquia_spi_server', $base_url);
  variable_set('acquia_spi_ssl_override', TRUE);
  variable_set('acquia_agent_verify_peer', FALSE);
}