You are here

protected function AcquiaSPITestCase::connectSite in Acquia Connector 7.2

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

Helper function connects to valid subscription.

3 calls to AcquiaSPITestCase::connectSite()
AcquiaSPITestCase::testAcquiaSPIMessages in acquia_spi/tests/acquia_spi.test
AcquiaSPITestCase::testAcquiaSPISend in acquia_spi/tests/acquia_spi.test
AcquiaSPITestCase::testAcquiaSPIUI in acquia_spi/tests/acquia_spi.test

File

acquia_spi/tests/acquia_spi.test, line 279

Class

AcquiaSPITestCase
Tests the functionality of the Acquia SPI module.

Code

protected function connectSite() {
  $edit_fields = array(
    'acquia_identifier' => ACQTEST_ID,
    'acquia_key' => ACQTEST_KEY,
  );
  $submit_button = 'Connect';
  $this
    ->drupalPost($this->credentials_path, $edit_fields, $submit_button);
}