<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
*/
-
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Member_StandaloneAddTest
+ */
class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
protected function setUp() {
// fill in Status Override?
// fill in Record Membership Payment?
-
+ $this->click("send_receipt");
+ $this->assertTrue($this->isChecked("send_receipt"), 'Send Confirmation and Receipt checkbox should be checked.');
$this->click("_qf_Membership_upload");
//View Membership
);
$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');
+ //case where we should fire certain
+ //ui actions which helps triggering possible
+ $test = $this;
+ $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl,
+ function() use ($test) {
+ $test->select('membership_type_id_0', 'value=1');
+ }
+ );
+ }
+}