X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCiviTest%2FParticipant.php;h=64d8023d96afbbc1770b81c0b9fbfed5ec3051fe;hb=3bdca10067500e4f437a90b96e902bc040c211e0;hp=cdd40bd8759f01b056aff54c332325705ebf5b7e;hpb=da7a33feb6f28d09a8b2de93cb702b43ed484851;p=civicrm-core.git diff --git a/tests/phpunit/CiviTest/Participant.php b/tests/phpunit/CiviTest/Participant.php index cdd40bd875..64d8023d96 100644 --- a/tests/phpunit/CiviTest/Participant.php +++ b/tests/phpunit/CiviTest/Participant.php @@ -7,12 +7,13 @@ 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 + * @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, @@ -33,11 +34,11 @@ class Participant extends PHPUnit_Framework_Testcase { /** * Helper function to delete a participant * - * @param $participantId - * @internal param int $participantID id of the participant to delete - * @return boolean true if participant deleted, false otherwise + * @param int $participantId + * @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); }