/** * @test */ public function registerTagAttributeRegistersArgumentWithNullIfNoDefaultValueIsSet() { $this->viewHelper = $this->getAccessibleMock('TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractTagBasedViewHelper', array('registerArgument'), array(), '', FALSE); $this->viewHelper->expects($this->once())->method('registerArgument')->with('foo', 'string', 'Description', FALSE, NULL); $this->viewHelper->_call('registerTagAttribute', 'foo', 'string', 'Description', FALSE); }