Code Duplication    Length = 9-9 lines in 2 locations

tests/unit/Controllers/DefaultControllerHelperTest.php 2 locations

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