CRM-12378 a new webtest helper function introduction which can help detect break...
[civicrm-core.git] / tests / phpunit / WebTest / Member / StandaloneAddTest.php
index 0e16c2b4519a90dc22500929d62878e662c21998..fab7c651e362700803f7464873dd8c75545b05fc 100644 (file)
@@ -161,5 +161,16 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     );
     $this->webtestVerifyTabularData($expected);
   }
-}
 
+  function testAjaxCustomGroupLoad() {
+    $this->webtestLogin();
+    $triggerElement = array('name' => 'membership_type_id_1', 'type' => 'select');
+    $customSets = array(
+      array('entity' => 'Membership', 'subEntity' => 'General', 'triggerElement' => $triggerElement),
+      array('entity' => 'Membership', 'subEntity' => 'Student', 'triggerElement' => $triggerElement)
+    );
+
+    $pageUrl = array('url' => 'member/add', 'args' => 'reset=1&action=add&context=standalone');
+    $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
+  }
+}
\ No newline at end of file