eZ\Publish\Core\Repository\Tests\Service\Mock\RoleTest::getPartlyMockedRoleService PHP Метод

getPartlyMockedRoleService() защищенный Метод

Injected Repository comes from {@see \getRepositoryMock()} and persistence handler from {@see \getPersistenceMock()}
protected getPartlyMockedRoleService ( array $methods = null, array $settings = [] ) : RoleService | PHPUnit_Framework_MockObject_MockObject
$methods array
$settings array
Результат eZ\Publish\Core\Repository\RoleService | PHPUnit_Framework_MockObject_MockObject
    protected function getPartlyMockedRoleService(array $methods = null, array $settings = array())
    {
        if (!isset($this->partlyMockedRoleService) || !empty($settings)) {
            $this->partlyMockedRoleService = $this->getMock('eZ\\Publish\\Core\\Repository\\RoleService', $methods, array($this->getRepositoryMock(), $this->getPersistenceMockHandler('User\\Handler'), $limitationService = $this->getPartlyMockedLimitationService($methods, $settings), $this->getMock('eZ\\Publish\\Core\\Repository\\Helper\\RoleDomainMapper', array(), array($limitationService)), $settings));
        }
        return $this->partlyMockedRoleService;
    }