public function setUp() { parent::setUp(); $this->viewHelper = $this->getAccessibleMock(\TYPO3\Fluid\ViewHelpers\Form\TextfieldViewHelper::class, array('setErrorClassAttribute', 'registerFieldNameForFormTokenGeneration')); $this->arguments['name'] = ''; $this->injectDependenciesIntoViewHelper($this->viewHelper); $this->viewHelper->initializeArguments(); }
/** * Initialize the arguments. * * @return void * @api */ public function initializeArguments() { parent::initializeArguments(); // HINT: we use a format compatible with the input type Date $this->registerArgument('format', 'string', 'A Format string compatible with the DateTimeConverter.', FALSE, 'MULTIPLE'); }