X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FEvent%2FAdditionalPaymentTest.php;h=b67ae2370d3ba9d4517f55d2548bd1ee68dccc81;hb=10525e4437a80b3f750037373d57a56888c45d82;hp=84f15d288d8e1a3f1c9b41f76d178b0b562c7747;hpb=87d422669cee2e65706fe72821613ad846cd0adb;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php b/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php index 84f15d288d..b67ae2370d 100644 --- a/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php +++ b/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php @@ -1,7 +1,7 @@ webtestLogin(); @@ -97,7 +97,7 @@ class WebTest_Event_AdditionalPaymentTest extends CiviSeleniumTestCase { // 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'); @@ -155,7 +155,7 @@ class WebTest_Event_AdditionalPaymentTest extends CiviSeleniumTestCase { // 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; @@ -211,7 +211,7 @@ class WebTest_Event_AdditionalPaymentTest extends CiviSeleniumTestCase { * @param $feeAmt * @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'); }