Merge pull request #5182 from colemanw/Cleanup
[civicrm-core.git] / tests / phpunit / CiviTest / ContributionPage.php
index 083214d56252607a733dc5719c988fc43f473f15..7c1cc1930b25d797ee5b49e29b84f9d96cf14680 100644 (file)
@@ -5,14 +5,15 @@
  */
 class ContributionPage extends PHPUnit_Framework_Testcase {
   /**
-   * Helper function to create
+   * Helper function to create.
    * a Contribution Page
    *
    * @param int $id
    *
-   * @return mixed $contributionPage id of created Contribution Page
+   * @return int
+   *   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!',
@@ -39,13 +40,15 @@ class ContributionPage extends PHPUnit_Framework_Testcase {
   }
 
   /**
-   * Helper function to delete a Contribution Page
+   * Helper function to delete a Contribution Page.
    *
-   * @param  int $contributionPageId - id of the Contribution Page
-   * to be deleted
-   * @return boolean true if Contribution Page deleted, false otherwise
+   * @param int $contributionPageId
+   *   Id of the Contribution Page.
+   *   to be deleted
+   * @return bool
+   *   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;
@@ -54,4 +57,5 @@ class ContributionPage extends PHPUnit_Framework_Testcase {
     }
     return $result;
   }
+
 }