Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/TreeHandlerTest.php 1 location

@@ 462-475 (lines=14) @@
459
     *
460
     * @return \PHPUnit_Framework_MockObject_MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler
461
     */
462
    protected function getFieldHandlerMock()
463
    {
464
        if (!isset($this->fieldHandlerMock)) {
465
            $this->fieldHandlerMock = $this->getMock(
466
                'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler',
467
                array(),
468
                array(),
469
                '',
470
                false
471
            );
472
        }
473
474
        return $this->fieldHandlerMock;
475
    }
476
477
    /**
478
     * @param array $methods

eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php 1 location

@@ 1500-1513 (lines=14) @@
1497
     *
1498
     * @return \eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler
1499
     */
1500
    protected function getFieldHandlerMock()
1501
    {
1502
        if (!isset($this->fieldHandlerMock)) {
1503
            $this->fieldHandlerMock = $this->getMock(
1504
                'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler',
1505
                array(),
1506
                array(),
1507
                '',
1508
                false
1509
            );
1510
        }
1511
1512
        return $this->fieldHandlerMock;
1513
    }
1514
1515
    /**
1516
     * Returns a Mapper mock.