Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 89-99 (lines=11) @@
86
    /**
87
     * @return \eZ\Publish\Core\Search\Common\FieldNameGenerator|\PHPUnit_Framework_MockObject_MockObject
88
     */
89
    protected function getFieldNameGeneratorMock()
90
    {
91
        if (!isset($this->fieldNameGeneratorMock)) {
92
            $this->fieldNameGeneratorMock = $this
93
                ->getMockBuilder('eZ\\Publish\\Core\\Search\\Common\\FieldNameGenerator')
94
                ->disableOriginalConstructor()
95
                ->getMock();
96
        }
97
98
        return $this->fieldNameGeneratorMock;
99
    }
100
101
    /**
102
     * @param \eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler $contentTypeHandler

eZ/Publish/Core/Search/Tests/FieldNameResolverTest.php 1 location

@@ 854-864 (lines=11) @@
851
    /**
852
     * @return \eZ\Publish\Core\Search\Common\FieldNameGenerator|\PHPUnit_Framework_MockObject_MockObject
853
     */
854
    protected function getFieldNameGeneratorMock()
855
    {
856
        if (!isset($this->fieldNameGeneratorMock)) {
857
            $this->fieldNameGeneratorMock = $this
858
                ->getMockBuilder('eZ\\Publish\\Core\\Search\\Common\\FieldNameGenerator')
859
                ->disableOriginalConstructor()
860
                ->getMock();
861
        }
862
863
        return $this->fieldNameGeneratorMock;
864
    }
865
866
    /**
867
     * @return \eZ\Publish\API\Repository\Values\Content\Query\Criterion|\PHPUnit_Framework_MockObject_MockObject