'Test Event', 'event_type_id' => 1, 'default_role_id' => 1, 'participant_listing_id' => 1, 'summary' => 'Created for Test Coverage BAO', 'description' => 'Test Coverage BAO', 'is_public' => 1, 'start_date' => '20080526200000', 'end_date' => '20080530200000', 'is_active' => 1, 'contact_id' => $contactId, ); $event = CRM_Event_BAO_Event::create($params); return $event->id; } /** * 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 */ static function delete($eventId) { return CRM_Event_BAO_Event::del($eventId); } }