Code Duplication    Length = 9-14 lines in 2 locations

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

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