X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContribute%2FOfflineContributionTest.php;h=3f49498757790b260d19abcfe9a405881fb9085c;hb=4f1f1f2a13f7d38ff984b04c7512617440bea5f8;hp=f551e02ac4491d761b4f0df1ec8045674edea189;hpb=5c80555fd8c24148ac1681ddf93a7fc1dbea6b45;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contribute/OfflineContributionTest.php b/tests/phpunit/WebTest/Contribute/OfflineContributionTest.php index f551e02ac4..3f49498757 100644 --- a/tests/phpunit/WebTest/Contribute/OfflineContributionTest.php +++ b/tests/phpunit/WebTest/Contribute/OfflineContributionTest.php @@ -197,7 +197,7 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase { 4 => 'Donation', 2 => '50.00', 6 => 'Completed', - 1 => "{$firstName} {$lastName}" + 1 => "{$firstName} {$lastName}", ); foreach ($expected as $value => $label) { $this->verifyText("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[2]/td[$value]", preg_quote($label)); @@ -308,8 +308,8 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase { $this->_verifyAmounts($checkScenario5); } - //common function for doing offline contribution /** + * common function for doing offline contribution * @param array $params * @param string $firstName * @param string $lastName @@ -364,8 +364,8 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase { $this->assertTrue($this->isTextPresent("The contribution record has been processed."), "Status message didn't show up after saving!"); } - //common function for verifing total_amount, and non_deductible_amount /** + * common function for verifing total_amount, and non_deductible_amount * @param $verifyData */ public function _verifyAmounts($verifyData) { @@ -395,7 +395,7 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase { "xpath=//form[@id='Basic']/div[3]/div[1]/div[2]/table/tbody/tr[1]/td[11]/span/a[text()='View']"); $this->clickLink("xpath=//form[@id='Basic']/div[3]/div[1]/div[2]/table/tbody/tr[1]/td[11]/span/a[text()='View']", - 'crm-contact-actions-link', FALSE); + 'crm-contact-actions-link', FALSE); } public function testOnlineContributionWithZeroAmount() { @@ -429,7 +429,7 @@ class WebTest_Contribute_OfflineContributionTest extends CiviSeleniumTestCase { 'Financial Type' => 'Donation', 'Total Amount' => '0.00', 'Contribution Status' => 'Completed', - 'Paid By' => 'Credit Card' + 'Paid By' => 'Credit Card', ); $this->webtestVerifyTabularData($expected); }