X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCiviTest%2FEvent.php;h=840a49be92e13ffeb6e1966775b6480fe9b873eb;hb=92915c5561d7ef4742bd6b46237760d6209141de;hp=705a66cef6f0f8637e6f930e455605b818ab795f;hpb=d10b2c65fedfc3bac77085a1639acc2188de2926;p=civicrm-core.git diff --git a/tests/phpunit/CiviTest/Event.php b/tests/phpunit/CiviTest/Event.php index 705a66cef6..840a49be92 100644 --- a/tests/phpunit/CiviTest/Event.php +++ b/tests/phpunit/CiviTest/Event.php @@ -8,11 +8,11 @@ class Event extends PHPUnit_Framework_Testcase { * Helper function to create * an Event * - * @param $contactId + * @param int $contactId * * @return mixed $event id of created Event */ - static function create($contactId) { + public static function create($contactId) { require_once "CRM/Event/BAO/Event.php"; $params = array( 'title' => 'Test Event', @@ -28,7 +28,6 @@ class Event extends PHPUnit_Framework_Testcase { 'contact_id' => $contactId, ); - $event = CRM_Event_BAO_Event::create($params); return $event->id; } @@ -36,14 +35,11 @@ class Event extends PHPUnit_Framework_Testcase { /** * Helper function to delete an Event * - * @param $eventId - * @internal param int $eventID id of the event to delete - * @return boolean true if event deleted, false otherwise + * @param int $eventId + * @return boolean + * true if event deleted, false otherwise */ - static function delete($eventId) { + public static function delete($eventId) { return CRM_Event_BAO_Event::del($eventId); } } - - -