Code Duplication    Length = 6-6 lines in 2 locations

tests/src/Unit/Plugin/dom_processor/data_processor/ParagraphsEditorPreparerUnitTest.php 1 location

@@ 172-177 (lines=6) @@
169
    return $prophecy;
170
  }
171
172
  protected function createChildFieldDefinitionProphecy() {
173
    $prophecy = $this->prophesize(FieldConfigInterface::CLASS);
174
    $prophecy->getName()->willReturn('field_test');
175
    $prophecy->id()->willReturn('paragraph.field_test');
176
    return $prophecy;
177
  }
178
179
  protected function createChildFieldItemsProphecy() {
180
    $prophecy = $this->prophesize(EntityReferenceFieldItemListInterface::CLASS);

tests/src/Unit/Plugin/dom_processor/data_processor/ParagraphsEditorRendererUnitTest.php 1 location

@@ 160-165 (lines=6) @@
157
    ], TRUE);
158
  }
159
160
  protected function createChildFieldDefinitionProphecy() {
161
    $prophecy = $this->prophesize(FieldConfigInterface::CLASS);
162
    $prophecy->getName()->willReturn('field_test');
163
    $prophecy->id()->willReturn('paragraph.field_test');
164
    return $prophecy;
165
  }
166
167
  protected function createChildFieldItemsProphecy() {
168
    $prophecy = $this->prophesize(EntityReferenceFieldItemListInterface::CLASS);