6 class Event
extends PHPUnit_Framework_Testcase
{
8 * Helper function to create
11 * @param int $contactId
16 public static function create($contactId) {
17 require_once "CRM/Event/BAO/Event.php";
19 'title' => 'Test Event',
21 'default_role_id' => 1,
22 'participant_listing_id' => 1,
23 'summary' => 'Created for Test Coverage BAO',
24 'description' => 'Test Coverage BAO',
26 'start_date' => '20080526200000',
27 'end_date' => '20080530200000',
29 'contact_id' => $contactId,
32 $event = CRM_Event_BAO_Event
::create($params);
37 * Helper function to delete an Event.
41 * true if event deleted, false otherwise
43 public static function delete($eventId) {
44 return CRM_Event_BAO_Event
::del($eventId);