function FieldConfigEditFormTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/field_ui/tests/src/Unit/FieldConfigEditFormTest.php \Drupal\Tests\field_ui\Unit\FieldConfigEditFormTest::setUp()
  2. 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 36

Class

FieldConfigEditFormTest
Tests Drupal\field_ui\Form\FieldConfigEditForm.

Namespace

Drupal\Tests\field_ui\Unit

Code

protected function setUp() : void {
  parent::setUp();
  $entity_type_bundle_info = $this->createStub(EntityTypeBundleInfoInterface::class);
  $typed_data = $this->createStub(TypedDataManagerInterface::class);
  $temp_store = $this->createStub(PrivateTempStore::class);
  $element_info_manager = $this->createStub(ElementInfoManagerInterface::class);
  $entity_display_repository = $this->createStub(EntityDisplayRepositoryInterface::class);
  $field_type_plugin_manager = $this->createStub(FieldTypePluginManagerInterface::class);
  $this->fieldConfigEditForm = new FieldConfigEditForm($entity_type_bundle_info, $typed_data, $entity_display_repository, $temp_store, $element_info_manager, $field_type_plugin_manager);
}

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