Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/TransactionHandlerTest.php 1 location

@@ 207-220 (lines=14) @@
204
     *
205
     * @return \eZ\Publish\Core\Persistence\Legacy\Content\Type\MemoryCachingHandler|\PHPUnit_Framework_MockObject_MockObject
206
     */
207
    protected function getContentTypeHandlerMock()
208
    {
209
        if (!isset($this->contentTypeHandlerMock)) {
210
            $this->contentTypeHandlerMock = $this->getMock(
211
                'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\MemoryCachingHandler',
212
                array(),
213
                array(),
214
                '',
215
                false
216
            );
217
        }
218
219
        return $this->contentTypeHandlerMock;
220
    }
221
222
    /**
223
     * Returns a mock object for the Content Language Gateway.

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

@@ 1482-1495 (lines=14) @@
1479
     *
1480
     * @return \PHPUnit_Framework_MockObject_MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler
1481
     */
1482
    protected function getContentTypeHandlerMock()
1483
    {
1484
        if (!isset($this->contentTypeHandlerMock)) {
1485
            $this->contentTypeHandlerMock = $this->getMock(
1486
                'eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Handler',
1487
                array(),
1488
                array(),
1489
                '',
1490
                false
1491
            );
1492
        }
1493
1494
        return $this->contentTypeHandlerMock;
1495
    }
1496
1497
    /**
1498
     * Returns a FieldHandler mock.