protected function getPartlyMockedUserService(array $methods = null) { return $this->getMock('eZ\\Publish\\Core\\Repository\\UserService', $methods, array($this->getRepositoryMock(), $this->getPersistenceMock()->userHandler())); }