INFRA-132 - Put "else" and "catch" on new line
[civicrm-core.git] / tests / phpunit / CiviTest / ContributionPage.php
index 93c172deed006ff3005a022444e363961cbe8a08..0787305ef3dd3217674ecb23ce97c547309dbdc0 100644 (file)
@@ -8,11 +8,11 @@ class ContributionPage extends PHPUnit_Framework_Testcase {
    * Helper function to create
    * a Contribution Page
    *
-   * @param null $id
+   * @param int $id
    *
    * @return mixed $contributionPage id of created Contribution Page
    */
-  static function create($id = NULL) {
+  public static function create($id = NULL) {
     require_once "CRM/Contribute/BAO/ContributionPage.php";
     $params = array(
       'title' => 'Help Test CiviCRM!',
@@ -24,7 +24,7 @@ class ContributionPage extends PHPUnit_Framework_Testcase {
       'min_amount' => 10,
       'max_amount' => 10000,
       'goal_amount' => 100000,
-      'thankyou_title' => 'Thanks for Your Support!',
+      'thankyou_title' => 'Thank you for your support!',
       'thankyou_text' => 'Thank you for your support.',
       'is_email_receipt' => 1,
       'receipt_from_name' => 'From TEST',
@@ -41,11 +41,12 @@ class ContributionPage extends PHPUnit_Framework_Testcase {
   /**
    * Helper function to delete a Contribution Page
    *
-   * @param  int $contributionPageId - id of the Contribution Page
+   * @param int $contributionPageId
+   *   Id of the Contribution Page.
    * to be deleted
    * @return boolean true if Contribution Page deleted, false otherwise
    */
-  static function delete($contributionPageId) {
+  public static function delete($contributionPageId) {
     require_once "CRM/Contribute/DAO/ContributionPage.php";
     $cp = new CRM_Contribute_DAO_ContributionPage();
     $cp->id = $contributionPageId;