Code Duplication    Length = 9-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/Location/Gateway/DoctrineDatabaseTrashTest.php 2 locations

@@ 204-217 (lines=14) @@
201
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::loadTrashByLocation
202
     * @dataProvider getLoadTrashValues
203
     */
204
    public function testLoadTrashByLocationId($field, $value)
205
    {
206
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
207
        $handler = $this->getLocationGateway();
208
        $handler->trashLocation(71);
209
210
        $data = $handler->loadTrashByLocation(71);
211
212
        $this->assertEquals(
213
            $value,
214
            $data[$field],
215
            "Value in property $field not as expected."
216
        );
217
    }
218
219
    /**
220
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::countTrashed
@@ 322-330 (lines=9) @@
319
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::listTrashed
320
     * @dataProvider getTrashValues
321
     */
322
    public function testListTrashItem($key, $value)
323
    {
324
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
325
        $handler = $this->getLocationGateway();
326
        $this->trashSubtree();
327
328
        $trashList = $handler->listTrashed(0, 1, []);
329
        $this->assertEquals($value, $trashList[0][$key]);
330
    }
331
332
    /**
333
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::listTrashed