CRM-12378 a new webtest helper function introduction which can help detect break...
[civicrm-core.git] / tests / phpunit / WebTest / Campaign / CampaignDescriptionTest.php
index a12087da182cb4ee42662a084184919708d1ea27..76b977f1bff84d69da1803d1789412dbb8320a52 100644 (file)
@@ -82,5 +82,16 @@ class WebTest_Campaign_CampaignDescriptionTest extends CiviSeleniumTestCase {
     $fetchedVaue = $this->getValue('description');
     $this->assertEquals($campaignDescription, $fetchedVaue);
   }
-}
 
+  function testAjaxCustomGroupLoad() {
+    $this->webtestLogin();
+    $triggerElement = array('name' => 'campaign_type_id', 'type' => 'select');
+    $customSets = array(
+      array('entity' => 'Campaign', 'subEntity' => 'Referral Program', 'triggerElement' => $triggerElement),
+      array('entity' => 'Campaign', 'subEntity' => 'Constituent Engagement', 'triggerElement' => $triggerElement)
+    );
+
+    $pageUrl = array('url' => 'campaign/add', 'args' => 'reset=1');
+    $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
+  }
+}
\ No newline at end of file