You are here

protected function MetadataGeneratorTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php \Drupal\Tests\quickedit\Kernel\MetadataGeneratorTest::setUp()
  2. 9 core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php \Drupal\Tests\quickedit\Kernel\MetadataGeneratorTest::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() : void {
  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);
}