INFRA-132 - tests/ - phpcbf
[civicrm-core.git] / tests / phpunit / CiviTest / Participant.php
index cdd40bd8759f01b056aff54c332325705ebf5b7e..6b845b6838cf33ebd1029f75cc30064b664d611c 100644 (file)
@@ -7,12 +7,12 @@ class Participant extends PHPUnit_Framework_Testcase {
   /**
    * Helper function to create a Participant
    *
-   * @param $contactId
-   * @param $eventId
+   * @param int $contactId
+   * @param int $eventId
    *
    * @return mixed $participant id of created Participant
    */
-  static function create($contactId, $eventId) {
+  public static function create($contactId, $eventId) {
     $params = array(
       'send_receipt' => 1,
       'is_test' => 0,
@@ -33,11 +33,10 @@ class Participant extends PHPUnit_Framework_Testcase {
   /**
    * Helper function to delete a participant
    *
-   * @param $participantId
-   * @internal param int $participantID id of the participant to delete
+   * @param int $participantId
    * @return boolean 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);
   }