You are here

protected function AcquiaConnectorSpiTest::connectSite in Acquia Connector 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/AcquiaConnectorSpiTest.php \Drupal\Tests\acquia_connector\Functional\AcquiaConnectorSpiTest::connectSite()
  2. 8 tests/src/Functional/AcquiaConnectorSpiTest.php \Drupal\Tests\acquia_connector\Functional\AcquiaConnectorSpiTest::connectSite()

Helper function connects to valid subscription.

6 calls to AcquiaConnectorSpiTest::connectSite()
AcquiaConnectorSpiTest::testAcquiaSpiGetTests in tests/src/Functional/AcquiaConnectorSpiTest.php
Test Acquia SPI get.
AcquiaConnectorSpiTest::testAcquiaSpiSendTests in tests/src/Functional/AcquiaConnectorSpiTest.php
Test Acquia SPI send.
AcquiaConnectorSpiTest::testAcquiaSpiSetVariablesTests in tests/src/Functional/AcquiaConnectorSpiTest.php
Test Acquia SPI set variables.
AcquiaConnectorSpiTest::testAcquiaSpiUiTests in tests/src/Functional/AcquiaConnectorSpiTest.php
Test Acquia SPI UI.
AcquiaConnectorSpiTest::testAcquiaSpiUpdateResponseTests in tests/src/Functional/AcquiaConnectorSpiTest.php
Test Acquia SPI update response.

... See full list

File

tests/src/Functional/AcquiaConnectorSpiTest.php, line 628

Class

AcquiaConnectorSpiTest
Tests the functionality of the Acquia SPI module.

Namespace

Drupal\Tests\acquia_connector\Functional

Code

protected function connectSite() {
  $edit_fields = [
    'acquia_identifier' => $this->acqtestId,
    'acquia_key' => $this->acqtestKey,
  ];
  $submit_button = 'Connect';
  $this
    ->drupalPostForm($this->credentialsPath, $edit_fields, $submit_button);
}