You are here

protected function FieldsHelperTest::setUp in Search API 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/FieldsHelperTest.php, line 34

Class

FieldsHelperTest
Tests the fields helper utility class.

Namespace

Drupal\Tests\search_api\Unit

Code

protected function setUp() {
  parent::setUp();
  $entity_type_manager = $this
    ->createMock(EntityTypeManagerInterface::class);
  $entity_field_manager = $this
    ->createMock(EntityFieldManagerInterface::class);
  $entity_type_info = $this
    ->createMock(EntityTypeBundleInfoInterface::class);
  $data_type_helper = $this
    ->createMock(DataTypeHelperInterface::class);
  $this->fieldsHelper = new FieldsHelper($entity_type_manager, $entity_field_manager, $entity_type_info, $data_type_helper);
}