/** * @param ViewHelperInterface $viewHelper * @return void */ protected function injectDependenciesIntoViewHelper(ViewHelperInterface $viewHelper) { $viewHelper->_set('configurationManager', $this->mockConfigurationManager); parent::injectDependenciesIntoViewHelper($viewHelper); $hashService = $this->getMock(\TYPO3\CMS\Extbase\Security\Cryptography\HashService::class, array('appendHmac')); $hashService->expects($this->any())->method('appendHmac')->will($this->returnValue('')); $this->mvcPropertyMapperConfigurationService->_set('hashService', $hashService); $viewHelper->_set('mvcPropertyMapperConfigurationService', $this->mvcPropertyMapperConfigurationService); $viewHelper->_set('hashService', $hashService); }
/** * @param ViewHelperInterface $viewHelper * @return void */ protected function injectDependenciesIntoViewHelper(ViewHelperInterface $viewHelper) { $viewHelper->_set('configurationManager', $this->mockConfigurationManager); parent::injectDependenciesIntoViewHelper($viewHelper); }