public function renderSetsTheChildNodesAsTagContentIfTheyAreSet() { $this->templateVariables = array('someProperty' => 'somePropertyValue'); $this->editableViewHelper->expects($this->atLeastOnce())->method('renderChildren')->will($this->returnValue('overriddenPropertyValue')); $this->tagBuilder->expects($this->once())->method('setContent')->with('overriddenPropertyValue'); $this->injectDependenciesIntoViewHelper($this->editableViewHelper); $this->injectTypoScriptObject(); $this->editableViewHelper->render('someProperty'); }