fix some spelling:
[civicrm-core.git] / tests / phpunit / WebTest / Event / AdditionalPaymentTest.php
index 84f15d288d8e1a3f1c9b41f76d178b0b562c7747..b67ae2370d3ba9d4517f55d2548bd1ee68dccc81 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -35,7 +35,7 @@ class WebTest_Event_AdditionalPaymentTest extends CiviSeleniumTestCase {
   }
 
   // CRM-13964 and CRM-13965
-  function testParticipantParitalPaymentInitiation() {
+  public function testParticipantParitalPaymentInitiation() {
     // Log in using webtestLogin() method
     $this->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');
   }