You are here

protected function FieldMatcherTest::setUp in CRM Core 8.2

Same name and namespace in other branches
  1. 8.3 modules/crm_core_match/tests/src/Kernel/FieldMatcherTest.php \Drupal\Tests\crm_core_match\Kernel\FieldMatcherTest::setUp()
  2. 8 modules/crm_core_match/tests/src/Kernel/FieldMatcherTest.php \Drupal\Tests\crm_core_match\Kernel\FieldMatcherTest::setUp()

Overrides KernelTestBase::setUp

File

modules/crm_core_match/tests/src/Kernel/FieldMatcherTest.php, line 45

Class

FieldMatcherTest
Tests the field matchers of the default matching engine.

Namespace

Drupal\Tests\crm_core_match\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'crm_core_contact',
  ]);
  $this
    ->installConfig([
    'crm_core_match',
  ]);
  $this
    ->installEntitySchema('action');
  $this
    ->installEntitySchema('crm_core_individual');
  IndividualType::create([
    'name' => 'Customer',
    'type' => 'customer',
    'description' => 'A single customer.',
    'primary_fields' => [],
  ])
    ->save();
  $this->pluginManager = $this->container
    ->get('plugin.manager.crm_core_match.match_field');
}