<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
}
// CRM-13964 and CRM-13965
- function testParticipantParitalPaymentInitiation() {
+ public function testParticipantParitalPaymentInitiation() {
// Log in using webtestLogin() method
$this->webtestLogin();
// check for proper info message displayed regarding status
$this->chooseCancelOnNextConfirmation();
$this->click('_qf_Participant_upload-bottom');
- $this->assertTrue((bool)preg_match("/Payment amount is less than the amount owed. Expected participant status is 'Partially paid'. Are you sure you want to set the participant status to Registered/", $this->getConfirmation()));
+ $this->assertTrue((bool) preg_match("/Payment amount is less than the amount owed. Expected participant status is 'Partially paid'. Are you sure you want to set the participant status to Registered/", $this->getConfirmation()));
// select partially paid status again and click on save
$this->select('status_id', 'label=Partially paid');
// verify balance
$text = $this->getText("xpath=id('AdditionalPayment')/div[2]//table/tbody/tr[3]/td[2]");
- $this->assertTrue((bool)preg_match("/{$balance}/", $text));
+ $this->assertTrue((bool) preg_match("/{$balance}/", $text));
// check form rule error
$errorBalance = $balance + 1;
/**
* @param $feeAmt
- * @param $amtPaid
+ * @param int $amtPaid
*/
- function _checkPaymentInfoTable($feeAmt, $amtPaid) {
+ public function _checkPaymentInfoTable($feeAmt, $amtPaid) {
$this->assertElementContainsText("xpath=//td[@id='payment-info']/table[@id='info']/tbody/tr[2]/td", "$ {$feeAmt}", 'Missing text: appropriate fee amount');
$this->assertElementContainsText("xpath=//td[@id='payment-info']/table[@id='info']/tbody/tr[2]/td[2]", "$ {$amtPaid}", 'Missing text: appropriate fee amount');
}