Code Duplication    Length = 10-11 lines in 3 locations

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

@@ 243-252 (lines=10) @@
240
    /**
241
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::listTrashed
242
     */
243
    public function testListEmptyTrash()
244
    {
245
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
246
        $handler = $this->getLocationGateway();
247
248
        $this->assertEquals(
249
            [],
250
            $handler->listTrashed(0, null, [])
251
        );
252
    }
253
254
    protected function trashSubtree()
255
    {
@@ 270-280 (lines=11) @@
267
    /**
268
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::listTrashed
269
     */
270
    public function testListFullTrash()
271
    {
272
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
273
        $handler = $this->getLocationGateway();
274
        $this->trashSubtree();
275
276
        $this->assertEquals(
277
            8,
278
            count($handler->listTrashed(0, null, []))
279
        );
280
    }
281
282
    /**
283
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::listTrashed
@@ 285-295 (lines=11) @@
282
    /**
283
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\DoctrineDatabase::listTrashed
284
     */
285
    public function testListTrashLimited()
286
    {
287
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
288
        $handler = $this->getLocationGateway();
289
        $this->trashSubtree();
290
291
        $this->assertEquals(
292
            5,
293
            count($handler->listTrashed(0, 5, []))
294
        );
295
    }
296
297
    public static function getTrashValues()
298
    {