Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/Gateway/DoctrineDatabaseTest.php 2 locations

@@ 416-429 (lines=14) @@
413
     *
414
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\DoctrineDatabase::remove
415
     */
416
    public function testRemove()
417
    {
418
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_remove.php');
419
        $gateway = $this->getGateway();
420
421
        $gateway->remove('eznode:314');
422
423
        self::assertEmpty($gateway->loadRow(0, 'd5189de027922f81005951e6efe0efd5'));
424
        self::assertEmpty($gateway->loadRow(0, 'a59d9f07e3d5fcf77911155650956a73'));
425
        self::assertEmpty($gateway->loadRow(0, '6449cba11bb134a57af94c8cb7f6c99c'));
426
        self::assertNotEmpty($gateway->loadRow(0, '0a06c09b6dd9a4606b4eb6d60ab188f0'));
427
        self::assertNotEmpty($gateway->loadRow(0, '82f2bce3283a0806a398fe78beda17d9'));
428
        self::assertNotEmpty($gateway->loadRow(0, '863d659d9fec68e5ab117b5f585a4ee7'));
429
    }
430
431
    /**
432
     * Test for the remove() method.
@@ 436-449 (lines=14) @@
433
     *
434
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\DoctrineDatabase::remove
435
     */
436
    public function testRemoveWithId()
437
    {
438
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_remove.php');
439
        $gateway = $this->getGateway();
440
441
        $gateway->remove('eznode:315', 6);
442
443
        self::assertEmpty($gateway->loadRow(0, '0a06c09b6dd9a4606b4eb6d60ab188f0'));
444
        self::assertEmpty($gateway->loadRow(0, '82f2bce3283a0806a398fe78beda17d9'));
445
        self::assertNotEmpty($gateway->loadRow(0, '863d659d9fec68e5ab117b5f585a4ee7'));
446
        self::assertNotEmpty($gateway->loadRow(0, 'd5189de027922f81005951e6efe0efd5'));
447
        self::assertNotEmpty($gateway->loadRow(0, 'a59d9f07e3d5fcf77911155650956a73'));
448
        self::assertNotEmpty($gateway->loadRow(0, '6449cba11bb134a57af94c8cb7f6c99c'));
449
    }
450
451
    /**
452
     * Test for the removeCustomAlias() method.