You are here

protected function AcquiaLiftWebTestBase::configureAcquiaLiftAccount in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 tests/acquia_lift.test \AcquiaLiftWebTestBase::configureAcquiaLiftAccount()

Helper method to configure an Acquia Lift account.

6 calls to AcquiaLiftWebTestBase::configureAcquiaLiftAccount()
AcquiaLiftWebTestAgentAdmin::testCreateAgent in tests/acquia_lift.test
AcquiaLiftWebTestBase::setUp in tests/acquia_lift.test
Sets up a Drupal site for running functional and integration tests.
AcquiaLiftWebTestCampaignWizardBase::setUp in tests/acquia_lift.test
Sets up a Drupal site for running functional and integration tests.
AcquiaLiftWebTestConfig::testLiftAgentAvailability in tests/acquia_lift.test
AcquiaLiftWebTestReports::setUp in tests/acquia_lift.test
Sets up a Drupal site for running functional and integration tests.

... See full list

File

tests/acquia_lift.test, line 377
Integration tests for Acquia Lift module.

Class

AcquiaLiftWebTestBase
@file Integration tests for Acquia Lift module.

Code

protected function configureAcquiaLiftAccount() {

  // Set the subscription data variable.
  variable_set('acquia_subscription_data', array(
    'active' => TRUE,
    'heartbeat_data' => array(
      'acquia_lift' => array(
        'status' => TRUE,
        'decision' => array(
          'public_key' => 'some-public-key',
          'private_key' => 'some-private-key',
          'api_url' => 'api.example.com',
        ),
        'profile' => array(
          'js_path' => 'acquia_lift_profiles.example.com/path/to.js',
          'account_name' => 'MYALPROFILESACCOUNT',
          'hostname' => 'web-api.example.com',
          'private_key' => 'abc123',
          'secret_key' => 'xyz987',
        ),
      ),
    ),
  ));
}