function MetadataGeneratorTest::setUp
Same name in other branches
- 8.9.x 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 55
Class
- MetadataGeneratorTest
- Tests in-place field editing metadata.
Namespace
Drupal\Tests\quickedit\KernelCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.