X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContribute%2FConfirmOptionalTest.php;h=7330186297e5dce6b548ac2b536b05d359043efe;hb=4f1f1f2a13f7d38ff984b04c7512617440bea5f8;hp=8c47d3d77a588c2faad7769c271459c812dc3d58;hpb=adc13f865ee7ced5d485e801528f2481fb6da0b0;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contribute/ConfirmOptionalTest.php b/tests/phpunit/WebTest/Contribute/ConfirmOptionalTest.php index 8c47d3d77a..7330186297 100644 --- a/tests/phpunit/WebTest/Contribute/ConfirmOptionalTest.php +++ b/tests/phpunit/WebTest/Contribute/ConfirmOptionalTest.php @@ -1,9 +1,9 @@ _addContributionPage(TRUE); $this->_fillOutContributionPage(); @@ -47,7 +51,7 @@ class WebTest_Contribute_ConfirmOptionalTest extends CiviSeleniumTestCase { $this->assertTrue($this->isTextPresent("Your transaction has been processed successfully"), "Should load thank you page"); } - function testWithoutConfirm() { + public function testWithoutConfirm() { $this->_addContributionPage(FALSE); $this->_fillOutContributionPage(); @@ -56,6 +60,9 @@ class WebTest_Contribute_ConfirmOptionalTest extends CiviSeleniumTestCase { $this->assertFalse($this->isTextPresent("Your contribution will not be completed until"), "Loaded confirmation page"); } + /** + * @param $isConfirmEnabled + */ protected function _addContributionPage($isConfirmEnabled) { // log in $this->webtestLogin(); @@ -84,7 +91,7 @@ class WebTest_Contribute_ConfirmOptionalTest extends CiviSeleniumTestCase { $isPcpApprovalNeeded = FALSE, $isSeparatePayment = FALSE, $honoreeSection = FALSE, - $allowOtherAmmount = TRUE, + $allowOtherAmount = TRUE, $isConfirmEnabled = $isConfirmEnabled ); } @@ -104,4 +111,3 @@ class WebTest_Contribute_ConfirmOptionalTest extends CiviSeleniumTestCase { $this->waitForPageToLoad($this->getTimeoutMsec()); } } -