You are here

protected function CivicrmEntityTestBase::sampleEventsData in CiviCRM Entity 8.3

Provides sample events data.

Return value

array The events data.

1 call to CivicrmEntityTestBase::sampleEventsData()
CivicrmEntityTestBase::mockCiviCrmApi in tests/src/Kernel/CivicrmEntityTestBase.php
Mocks the CiviCRM API.

File

tests/src/Kernel/CivicrmEntityTestBase.php, line 1703

Class

CivicrmEntityTestBase
Test base to aid in mocking the CiviCRM API.

Namespace

Drupal\Tests\civicrm_entity\Kernel

Code

protected function sampleEventsData() {
  return [
    0 => [
      'id' => '1',
      'title' => 'Fall Fundraiser Dinner',
      'event_title' => 'Fall Fundraiser Dinner',
      'summary' => 'Kick up your heels at our Fall Fundraiser Dinner/Dance at Glen Echo Park! Come by yourself or bring a partner, friend or the entire family!',
      'description' => 'This event benefits our teen programs. Admission includes a full 3 course meal and wine or soft drinks. Grab your dancing shoes, bring the kids and come join the party!',
      'event_description' => 'This event benefits our teen programs. Admission includes a full 3 course meal and wine or soft drinks. Grab your dancing shoes, bring the kids and come join the party!',
      'event_type_id' => '3',
      'participant_listing_id' => '1',
      'is_public' => '1',
      'start_date' => '2018-05-02 17:00:00',
      'event_start_date' => '2018-05-02 17:00:00',
      'end_date' => '2018-05-04 17:00:00',
      'event_end_date' => '2018-05-04 17:00:00',
      'is_online_registration' => '1',
      'registration_link_text' => 'Register Now',
      'max_participants' => '100',
      'event_full_text' => 'Sorry! The Fall Fundraiser Dinner is full. Please call Jane at 204 222-1000 ext 33 if you want to be added to the waiting list.',
      'is_monetary' => '1',
      'financial_type_id' => '4',
      'payment_processor' => '1',
      'is_map' => '1',
      'is_active' => '1',
      'fee_label' => 'Dinner Contribution',
      'is_show_location' => '1',
      'loc_block_id' => '1',
      'default_role_id' => '1',
      'intro_text' => 'Fill in the information below to join as at this wonderful dinner event.',
      'confirm_title' => 'Confirm Your Registration Information',
      'confirm_text' => 'Review the information below carefully.',
      'is_email_confirm' => '1',
      'confirm_email_text' => 'Contact the Development Department if you need to make any changes to your registration.',
      'confirm_from_name' => 'Fundraising Dept.',
      'confirm_from_email' => 'development@example.org',
      'thankyou_title' => 'Thanks for Registering!',
      'thankyou_text' => 'Thank you',
      'is_pay_later' => '1',
      'pay_later_text' => 'I will send payment by check',
      'pay_later_receipt' => 'Send a check payable to Our Organization within 3 business days to hold your reservation. Checks should be sent to: 100 Main St., Suite 3, San Francisco CA 94110',
      'is_partial_payment' => '0',
      'is_multiple_registrations' => '1',
      'max_additional_participants' => '0',
      'allow_same_participant_emails' => '0',
      'allow_selfcancelxfer' => '0',
      'selfcancelxfer_time' => '0',
      'is_template' => '0',
      'currency' => 'USD',
      'is_share' => '1',
      'is_confirm_enabled' => '1',
      'is_billing_required' => '0',
      'contribution_type_id' => '4',
    ],
  ];
}