public function onlyFetchRootTypoScriptOfRootlineIfTheFluxConfigurationManagerIsInjected()
{
$service = $this->getMock('FluidTYPO3\\Fluidcontent\\Service\\ConfigurationService', array('getAllRootTypoScriptTemplates', 'renderPageTypoScriptForPageUid', 'getTypoScriptTemplatesInRootline'), array(), '', FALSE);
$service->expects($this->once())->method('getTypoScriptTemplatesInRootline')->will($this->returnValue(array()));
$service->expects($this->never())->method('getAllRootTypoScriptTemplates');
$service->injectConfigurationManager($this->getMock('FluidTYPO3\\Flux\\Configuration\\ConfigurationManager'));
$service->getPageTsConfig();
}