X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FEvent%2FAdditionalPaymentTest.php;h=b67ae2370d3ba9d4517f55d2548bd1ee68dccc81;hb=10525e4437a80b3f750037373d57a56888c45d82;hp=8467774ecce2bb85236a44e8b25f035337f8178a;hpb=92b0f883315c72514e629b1c9e37261b84186785;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php b/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php index 8467774ecc..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; @@ -209,9 +209,9 @@ class WebTest_Event_AdditionalPaymentTest extends CiviSeleniumTestCase { /** * @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'); }