You are here

function AcquiaLiftWebTestBase::createTestFromOptionSet in Acquia Lift Connector 7.2

8 calls to AcquiaLiftWebTestBase::createTestFromOptionSet()
AcquiaLiftWebTestAgentAdmin::testAgentList in tests/acquia_lift.test
AcquiaLiftWebTestCampaignWizardReview::testReviewFormStatus in tests/acquia_lift.test
Tests review form status changes.
AcquiaLiftWebTestCampaignWizardReview::testReviewSubmit in tests/acquia_lift.test
Tests the submission of the review form which results in nested tests being created.
AcquiaLiftWebTestCampaignWizardReview::testReviewSubmitErrors in tests/acquia_lift.test
Tests the behavior of the review form when there are batch sync errors.
AcquiaLiftWebTestCampaignWizardTargeting::testAdvancedTestSettings in tests/acquia_lift.test
Test the advanced test settings on the targeting page.

... See full list

1 method overrides AcquiaLiftWebTestBase::createTestFromOptionSet()
AcquiaLiftWebTestFundamentals::createTestFromOptionSet in tests/acquia_lift.test

File

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

Class

AcquiaLiftWebTestBase
@file Integration tests for Acquia Lift module.

Code

function createTestFromOptionSet($agent_data, $option_set) {
  module_load_include('inc', 'acquia_lift', 'acquia_lift.admin');
  $option_ids = array();
  foreach ($option_set->options as $option) {
    $option_ids[] = $option['option_id'];
  }
  acquia_lift_save_targeting_structure($agent_data, array(
    ACQUIA_LIFT_TARGETING_EVERYONE_ELSE => $option_ids,
  ));
}