eZ\Publish\Core\Repository\Tests\Service\Mock\UrlAliasTest::getPartlyMockedURLAliasServiceService PHP Method

getPartlyMockedURLAliasServiceService() protected method

Injected Repository comes from {@see \getRepositoryMock()} and persistence handler from {@see \getPersistenceMock()}
protected getPartlyMockedURLAliasServiceService ( array $methods = null ) : URLAliasService | PHPUnit_Framework_MockObject_MockObject
$methods array
return eZ\Publish\Core\Repository\URLAliasService | PHPUnit_Framework_MockObject_MockObject
    protected function getPartlyMockedURLAliasServiceService(array $methods = null)
    {
        $languageServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\LanguageService', array(), array(), '', false);
        $languageServiceMock->expects($this->once())->method('getPrioritizedLanguageCodeList')->will($this->returnValue(array('eng-GB')));
        $this->getRepositoryMock()->expects($this->once())->method('getContentLanguageService')->will($this->returnValue($languageServiceMock));
        return $this->getMock('eZ\\Publish\\Core\\Repository\\URLAliasService', $methods, array($this->getRepositoryMock(), $this->getPersistenceMock()->urlAliasHandler()));
    }
UrlAliasTest