You are here

protected function ALProfilesWebTest::configureALProfiles in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 acquia_lift_profiles/tests/acquia_lift_profiles.test \ALProfilesWebTest::configureALProfiles()

Helper function to configure acquia_lift_profiles settings.

8 calls to ALProfilesWebTest::configureALProfiles()
ALProfilesWebTest::testAdminLink in acquia_lift_profiles/tests/acquia_lift_profiles.test
ALProfilesWebTest::testALProfilesJSSettings in acquia_lift_profiles/tests/acquia_lift_profiles.test
ALProfilesWebTest::testFieldMappings in acquia_lift_profiles/tests/acquia_lift_profiles.test
ALProfilesWebTest::testIdentityParams in acquia_lift_profiles/tests/acquia_lift_profiles.test
Tests identity param configuration and js settings.
ALProfilesWebTest::testSegments in acquia_lift_profiles/tests/acquia_lift_profiles.test
Tests that available segments are added to the page.

... See full list

File

acquia_lift_profiles/tests/acquia_lift_profiles.test, line 488
Tests for Acquia Lift Profiles module.

Class

ALProfilesWebTest
Tests Acquia Lift Profiles functionality.

Code

protected function configureALProfiles() {
  $settings = array(
    'acquia_lift_profiles_js_path' => 'acquia_lift_profiles.example.com/path/to.js',
    'acquia_lift_profiles_account_name' => 'MYALPROFILESACCOUNT',
    'acquia_lift_profiles_site_name' => 'MYALPROFILESSITE',
    'acquia_lift_profiles_api_url' => 'api.example.com',
    'acquia_lift_profiles_access_key' => 'abc123',
    'acquia_lift_profiles_secret_key' => 'xyz987',
  );
  foreach ($settings as $setting => $value) {
    variable_set($setting, $value);
  }
}