Code Duplication    Length = 11-11 lines in 2 locations

tests/Drupal/Tests/Driver/Kernel/Drupal8/Entity/DriverEntityTest.php 2 locations

@@ 76-86 (lines=11) @@
73
   * Assert that an entity is created using the setFields method and an field
74
   * values array.
75
   */
76
    protected function assertEntitySetFieldsWithArray($fieldValues)
77
    {
78
        $value = $this->randomString();
79
        $fieldValues = $this->recursiveReplace('NAME', $value, $fieldValues);
80
        $fieldName = 'name';
81
        $entity = new DriverEntityDrupal8(
82
            $this->entityType
83
        );
84
        $entity->setFields([$fieldName => $fieldValues]);
85
        $this->assertEntityWithName($value, $fieldName, $entity);
86
    }
87
88
  /**
89
   * Assert that an entity is created using the setFields method and a driver
@@ 112-122 (lines=11) @@
109
  /**
110
   * Assert that an entity is created using the set method.
111
   */
112
    protected function assertEntitySet($fieldValues)
113
    {
114
        $value = $this->randomString();
115
        $fieldValues = $this->recursiveReplace('NAME', $value, $fieldValues);
116
        $fieldName = 'name';
117
        $entity = new DriverEntityDrupal8(
118
            $this->entityType
119
        );
120
        $entity->set($fieldName, $fieldValues);
121
        $this->assertEntityWithName($value, $fieldName, $entity);
122
    }
123
124
  /**
125
   * Assert that an entity is created & wrapped with a specified name.