protected function MetadataGeneratorTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/quickedit/src/Tests/MetadataGeneratorTest.php \Drupal\quickedit\Tests\MetadataGeneratorTest::setUp()
Sets the default field storage backend for fields created during tests.
Overrides QuickEditTestBase::setUp
File
- core/
modules/ quickedit/ src/ Tests/ MetadataGeneratorTest.php, line 54 - Contains \Drupal\quickedit\Tests\MetadataGeneratorTest.
Class
- MetadataGeneratorTest
- Tests in-place field editing metadata.
Namespace
Drupal\quickedit\TestsCode
protected function setUp() {
parent::setUp();
$this->editorManager = $this->container
->get('plugin.manager.quickedit.editor');
$this->accessChecker = new MockEditEntityFieldAccessCheck();
$this->editorSelector = new EditorSelector($this->editorManager, $this->container
->get('plugin.manager.field.formatter'));
$this->metadataGenerator = new MetadataGenerator($this->accessChecker, $this->editorSelector, $this->editorManager);
}