You are here

protected function MetadataGeneratorTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php \Drupal\Tests\quickedit\Kernel\MetadataGeneratorTest::setUp()

Sets the default field storage backend for fields created during tests.

Overrides QuickEditTestBase::setUp

File

core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php, line 51

Class

MetadataGeneratorTest
Tests in-place field editing metadata.

Namespace

Drupal\Tests\quickedit\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->editorManager = $this->container
    ->get('plugin.manager.quickedit.editor');
  $this->accessChecker = new MockQuickEditEntityFieldAccessCheck();
  $this->editorSelector = new EditorSelector($this->editorManager, $this->container
    ->get('plugin.manager.field.formatter'));
  $this->metadataGenerator = new MetadataGenerator($this->accessChecker, $this->editorSelector, $this->editorManager);
}