Code Duplication    Length = 9-9 lines in 2 locations

tests/unit/Controllers/DefaultControllerHelperTest.php 2 locations

@@ 159-167 (lines=9) @@
156
    /**
157
     * @test
158
     */
159
    public function shouldPersistEntity()
160
    {
161
        /** @var stdClass $entity */
162
        $entity = $this->createMock(stdClass::class);
163
164
        $this->entityManager->expects($this->once())->method('persist')->with($this->identicalTo($entity));
165
166
        $this->controllerHelper->persistEntity($entity);
167
    }
168
169
    /**
170
     * @test
@@ 172-180 (lines=9) @@
169
    /**
170
     * @test
171
     */
172
    public function shouldRemoveEntity()
173
    {
174
        /** @var stdClass $entity */
175
        $entity = $this->createMock(stdClass::class);
176
177
        $this->entityManager->expects($this->once())->method('remove')->with($this->identicalTo($entity));
178
179
        $this->controllerHelper->removeEntity($entity);
180
    }
181
182
    /**
183
     * @test