<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function testStandaloneMemberAdd() {
+ public function testStandaloneMemberAdd() {
$this->webtestLogin();
$this->webtestVerifyTabularData($expected);
}
- function testStandaloneGiftMembership() {
+ public function testStandaloneGiftMembership() {
$this->webtestLogin();
// add softcredit details
$totalAmount = 100;
$financialType = 'Donation';
- $this->clickLink('is_different_contribution_contact','total_amount',FALSE);
+ $this->clickLink('is_different_contribution_contact', 'total_amount', FALSE);
$this->select('soft_credit_type_id', 'Gift');
$this->select2('soft_credit_contact_id', $giftMembercontactName);
- $this->select('financial_type_id','Donation');
+ $this->select('financial_type_id', 'Donation');
$this->type('total_amount', $totalAmount);
$this->select('payment_instrument_id', 'Check');
$this->select('contribution_status_id', 'Completed');
}
- function testStandaloneMemberOverrideAdd() {
+ public function testStandaloneMemberOverrideAdd() {
$this->webtestLogin();
// fill in Record Membership Payment?
$this->click("record_contribution", "value=1");
$this->waitForElementPresent("contribution_status_id");
- // let financial type be default
+ // let financial type be default
// let the amount be default
$this->webtestVerifyTabularData($expected);
}
- function testAjaxCustomGroupLoad() {
+ public function testAjaxCustomGroupLoad() {
$this->webtestLogin();
$triggerElement = array('name' => 'membership_type_id_1', 'type' => 'select');
$customSets = array(
$test = $this;
$this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl,
function() use ($test) {
- $test->select('membership_type_id_0', 'value=1');
+ $test->select('membership_type_id_0', 'value=1');
}
);
}