Code Duplication    Length = 23-23 lines in 4 locations

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

@@ 155-177 (lines=23) @@
152
    return $cases;
153
  }
154
155
  protected function createFieldValueManagerProphecy() {
156
    return $this->createFieldValueManager([
157
      'elements' => [
158
        'widget' => [
159
          'tag' => 'widget',
160
          'attributes' => [
161
            'data-context' => '<context>',
162
            'data-uuid' => '<uuid>',
163
          ],
164
          'selector' => 'widget',
165
        ],
166
        'field' => [
167
          'tag' => 'field',
168
          'attributes' => [
169
            'data-name' => '<name>',
170
            'data-editable' => '<editable>',
171
            'data-context' => '<context>',
172
          ],
173
          'selector' => 'field',
174
        ],
175
      ],
176
    ], TRUE);
177
  }
178
}
179

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

@@ 190-212 (lines=23) @@
187
    return $prophecy;
188
  }
189
190
  protected function createFieldValueManagerProphecy() {
191
    return $this->createFieldValueManager([
192
      'elements' => [
193
        'widget' => [
194
          'tag' => 'widget',
195
          'attributes' => [
196
            'data-context' => '<context>',
197
            'data-uuid' => '<uuid>',
198
          ],
199
          'selector' => 'widget',
200
        ],
201
        'field' => [
202
          'tag' => 'field',
203
          'attributes' => [
204
            'data-name' => '<name>',
205
            'data-editable' => '<editable>',
206
            'data-context' => '<context>',
207
          ],
208
          'selector' => 'field',
209
        ],
210
      ],
211
    ], TRUE);
212
  }
213
}
214

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

@@ 136-158 (lines=23) @@
133
    }
134
  }
135
136
    protected function createFieldValueManagerProphecy() {
137
    return $this->createFieldValueManager([
138
      'elements' => [
139
        'widget' => [
140
          'tag' => 'widget',
141
          'attributes' => [
142
            'data-context' => '<context>',
143
            'data-uuid' => '<uuid>',
144
          ],
145
          'selector' => 'widget',
146
        ],
147
        'field' => [
148
          'tag' => 'field',
149
          'attributes' => [
150
            'data-name' => '<name>',
151
            'data-editable' => '<editable>',
152
            'data-context' => '<context>',
153
          ],
154
          'selector' => 'field',
155
        ],
156
      ],
157
    ], TRUE);
158
  }
159
160
  protected function createChildFieldDefinitionProphecy() {
161
    $prophecy = $this->prophesize(FieldConfigInterface::CLASS);

tests/src/Unit/Plugin/dom_processor/semantic_analyzer/ParagraphsEditorParagraphAnalyzerUnitTest.php 1 location

@@ 190-212 (lines=23) @@
187
    ];
188
  }
189
190
  protected function createFieldValueManagerProphecy() {
191
    return $this->createFieldValueManager([
192
      'elements' => [
193
        'widget' => [
194
          'tag' => 'widget',
195
          'attributes' => [
196
            'data-context' => '<context>',
197
            'data-uuid' => '<uuid>',
198
          ],
199
          'selector' => 'widget',
200
        ],
201
        'field' => [
202
          'tag' => 'field',
203
          'attributes' => [
204
            'data-name' => '<name>',
205
            'data-editable' => '<editable>',
206
            'data-context' => '<context>',
207
          ],
208
          'selector' => 'field',
209
        ],
210
      ],
211
    ], TRUE);
212
  }
213
214
}
215