INFRA-132 - Move stray comments into docblocks
[civicrm-core.git] / tests / phpunit / WebTest / Contribute / ConfirmOptionalTest.php
index 1b0cdb5a05337908d55e23761d06ee25d2a5b598..7330186297e5dce6b548ac2b536b05d359043efe 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
 */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Contribute_ConfirmOptionalTest
+ */
 class WebTest_Contribute_ConfirmOptionalTest extends CiviSeleniumTestCase {
   protected $pageId = 0;
 
@@ -32,7 +36,7 @@ class WebTest_Contribute_ConfirmOptionalTest extends CiviSeleniumTestCase {
     parent::setUp();
   }
 
-  function testWithConfirm() {
+  public function testWithConfirm() {
     $this->_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());
   }
 }
-