6 class Event
extends PHPUnit_Framework_Testcase
{
8 * Helper function to create
13 * @return mixed $event id of created Event
15 static function create($contactId) {
16 require_once "CRM/Event/BAO/Event.php";
18 'title' => 'Test Event',
20 'default_role_id' => 1,
21 'participant_listing_id' => 1,
22 'summary' => 'Created for Test Coverage BAO',
23 'description' => 'Test Coverage BAO',
25 'start_date' => '20080526200000',
26 'end_date' => '20080530200000',
28 'contact_id' => $contactId,
32 $event = CRM_Event_BAO_Event
::create($params);
37 * Helper function to delete an Event
40 * @internal param int $eventID id of the event to delete
41 * @return boolean true if event deleted, false otherwise
43 static function delete($eventId) {
44 return CRM_Event_BAO_Event
::del($eventId);