Code Duplication    Length = 12-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php 2 locations

@@ 629-642 (lines=14) @@
626
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::load
627
     * @expectedException \eZ\Publish\Core\Base\Exceptions\NotFoundException
628
     */
629
    public function testLoadErrorNotFound()
630
    {
631
        $handler = $this->getContentHandler();
632
633
        $gatewayMock = $this->getGatewayMock();
634
635
        $gatewayMock->expects($this->once())
636
            ->method('load')
637
            ->will(
638
                $this->returnValue(array())
639
            );
640
641
        $result = $handler->load(23, 2, array('eng-GB'));
642
    }
643
644
    /**
645
     * Returns a Content for {@link testCreateDraftFromVersion()}.
@@ 1461-1472 (lines=12) @@
1458
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::copy
1459
     * @expectedException \eZ\Publish\Core\Base\Exceptions\NotFoundException
1460
     */
1461
    public function testCopyThrowsNotFoundExceptionVersionNotFound()
1462
    {
1463
        $handler = $this->getContentHandler();
1464
1465
        $gatewayMock = $this->getGatewayMock();
1466
        $gatewayMock->expects($this->once())
1467
            ->method('load')
1468
            ->with($this->equalTo(23, 32))
1469
            ->will($this->returnValue(array()));
1470
1471
        $result = $handler->copy(23, 32);
1472
    }
1473
1474
    /**
1475
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::setStatus