public function renderCorrectlySetsTagNameAndAttributesAndContent() { $mockTagBuilder = $this->createMock(\TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder::class); $mockTagBuilder->expects($this->any())->method('setTagName')->with('a'); $mockTagBuilder->expects($this->once())->method('addAttribute')->with('href', 'mailto:[email protected]'); $mockTagBuilder->expects($this->once())->method('setContent')->with('some content'); $this->viewHelper->injectTagBuilder($mockTagBuilder); $this->viewHelper->expects($this->any())->method('renderChildren')->will($this->returnValue('some content')); $this->viewHelper->initialize(); $this->viewHelper->render('[email protected]'); }