function ALProfilesWebTest::configureALProfiles in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift_profiles/tests/acquia_lift_profiles.test \ALProfilesWebTest::configureALProfiles()
Helper function to configure acquia_lift_profiles settings.
7 calls to ALProfilesWebTest::configureALProfiles()
- 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.
- ALProfilesWebTest::testSyncEvents in acquia_lift_profiles/
tests/ acquia_lift_profiles.test
File
- acquia_lift_profiles/
tests/ acquia_lift_profiles.test, line 437 - Tests for Acquia Lift Profiles module.
Class
- ALProfilesWebTest
- Tests Acquia Lift Profiles functionality.
Code
function configureALProfiles() {
$this
->drupalLogin($this->admin_user);
$edit = array(
'acquia_lift_profiles_account_name' => 'MYALPROFILESACCOUNT',
'acquia_lift_profiles_site_name' => 'MYALPROFILESSITE',
'acquia_lift_profiles_js_path' => 'acquia_lift_profiles.example.com/path/to.js',
'acquia_lift_profiles_api_url' => 'api.example.com',
'acquia_lift_profiles_access_key' => 'abc123',
'acquia_lift_profiles_secret_key' => 'xyz987',
);
$this
->drupalPost('admin/config/content/personalize/acquia_lift_profiles', $edit, t('Save'));
$this
->drupalLogout();
}