function MetadataGeneratorTest::setUp

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

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);
}

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