Code Duplication    Length = 12-12 lines in 2 locations

eZ/Publish/Core/Repository/Tests/Service/Mock/UserTest.php 1 location

@@ 140-151 (lines=12) @@
137
     *
138
     * @return \eZ\Publish\Core\Repository\UserService|\PHPUnit_Framework_MockObject_MockObject
139
     */
140
    protected function getPartlyMockedUserService(array $methods = null)
141
    {
142
        return $this->getMockBuilder('eZ\\Publish\\Core\\Repository\\UserService')
143
            ->setMethods($methods)
144
            ->setConstructorArgs(
145
                array(
146
                    $this->getRepositoryMock(),
147
                    $this->getPersistenceMock()->userHandler(),
148
                )
149
            )
150
            ->getMock();
151
    }
152
}
153

eZ/Publish/Core/Repository/Tests/Service/Mock/UrlWildcardTest.php 1 location

@@ 802-813 (lines=12) @@
799
     *
800
     * @return \eZ\Publish\Core\Repository\URLWildcardService|\PHPUnit_Framework_MockObject_MockObject
801
     */
802
    protected function getPartlyMockedURLWildcardService(array $methods = null)
803
    {
804
        return $this->getMockBuilder('eZ\\Publish\\Core\\Repository\\URLWildcardService')
805
            ->setMethods($methods)
806
            ->setConstructorArgs(
807
                array(
808
                    $this->getRepositoryMock(),
809
                    $this->getPersistenceMock()->urlWildcardHandler(),
810
                )
811
            )
812
            ->getMock();
813
    }
814
}
815