You are here

protected function CivicrmEntityTestBase::minimalGenericGetFields in CiviCRM Entity 8.3

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

File

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

Class

CivicrmEntityTestBase
Test base to aid in mocking the CiviCRM API.

Namespace

Drupal\Tests\civicrm_entity\Kernel

Code

protected function minimalGenericGetFields() {
  return [
    'id' => [
      'name' => 'id',
      'type' => 1,
      'title' => 'Event ID',
      'description' => 'Event',
      'required' => TRUE,
      'table_name' => 'civicrm_event',
      'entity' => 'Event',
      'bao' => 'CRM_Event_BAO_Event',
      'localizable' => 0,
      'is_core_field' => TRUE,
      'api.aliases' => [
        0 => 'event_id',
      ],
    ],
  ];
}