function FieldConfigEditFormTest::setUp

Same name in other branches
  1. 10 core/modules/field_ui/tests/src/Unit/FieldConfigEditFormTest.php \Drupal\Tests\field_ui\Unit\FieldConfigEditFormTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/field_ui/tests/src/Unit/FieldConfigEditFormTest.php, line 30

Class

FieldConfigEditFormTest
@coversDefaultClass \Drupal\field_ui\Form\FieldConfigEditForm

Namespace

Drupal\Tests\field_ui\Unit

Code

protected function setUp() : void {
    parent::setUp();
    $entity_type_bundle_info = $this->createMock('\\Drupal\\Core\\Entity\\EntityTypeBundleInfoInterface');
    $typed_data = $this->createMock('\\Drupal\\Core\\TypedData\\TypedDataManagerInterface');
    $temp_store = $this->createMock(PrivateTempStore::class);
    $element_info_manager = $this->createMock(ElementInfoManagerInterface::class);
    $entity_display_repository = $this->createMock(EntityDisplayRepositoryInterface::class);
    $this->fieldConfigEditForm = new FieldConfigEditForm($entity_type_bundle_info, $typed_data, $entity_display_repository, $temp_store, $element_info_manager);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.