Merge pull request #5386 from colemanw/CRM-15706
[civicrm-core.git] / tests / phpunit / CiviTest / Participant.php
index 405271f86330c53d4f7d106c7f5a2771fd5d65ef..fd60bcf54b7e1d8f737bbb2fe1c0fbd3130abc97 100644 (file)
@@ -5,14 +5,15 @@
  */
 class Participant extends PHPUnit_Framework_Testcase {
   /**
-   * Helper function to create a Participant
+   * Helper function to create a Participant.
    *
    * @param int $contactId
    * @param int $eventId
    *
-   * @return mixed $participant id of created Participant
+   * @return int
+   *   id of created Participant
    */
-  static function create($contactId, $eventId) {
+  public static function create($contactId, $eventId) {
     $params = array(
       'send_receipt' => 1,
       'is_test' => 0,
@@ -31,13 +32,15 @@ class Participant extends PHPUnit_Framework_Testcase {
   }
 
   /**
-   * Helper function to delete a participant
+   * Helper function to delete a participant.
    *
    * @param int $participantId
-   * @return boolean true if participant deleted, false otherwise
+   * @return bool
+   *   true if participant deleted, false otherwise
    */
-  static function delete($participantId) {
+  public static function delete($participantId) {
     require_once 'CRM/Event/BAO/Participant.php';
     return CRM_Event_BAO_Participant::deleteParticipant($participantId);
   }
+
 }