protected function ALProfilesWebTest::createVisitorActions in Acquia Lift Connector 7.2
Create a list of visitor actions as test fixtures.
1 call to ALProfilesWebTest::createVisitorActions()
- ALProfilesWebTest::testLiftEventValuesConfig in acquia_lift_profiles/
tests/ acquia_lift_profiles.test
File
- acquia_lift_profiles/
tests/ acquia_lift_profiles.test, line 546 - Tests for Acquia Lift Profiles module.
Class
- ALProfilesWebTest
- Tests Acquia Lift Profiles functionality.
Code
protected function createVisitorActions() {
$actions = array(
'acquia_lift_profiles_form_click' => array(
'machine_name' => 'acquia_lift_profiles_form_click',
'plugin' => 'link',
'label' => t('clicks the click-test link'),
'client_side' => TRUE,
'pages' => 'node',
'identifier' => '.click-test',
'data' => array(),
'event' => 'click',
),
'acquia_lift_profiles_form_hover' => array(
'machine_name' => 'acquia_lift_profiles_form_hover',
'plugin' => 'link',
'label' => t('hovers over the hover-test link'),
'client_side' => TRUE,
'pages' => 'node/1',
'identifier' => '.hover-test',
'data' => array(),
'event' => 'mouseenter',
),
);
foreach ($actions as $action) {
visitor_actions_save_action($action);
}
}