/**
  * @param NodeInterface $currentSiteNode
  * @return \TYPO3\TypoScript\Core\Runtime
  */
 protected function getTypoScriptRuntime(NodeInterface $currentSiteNode)
 {
     if ($this->typoScriptRuntime === null) {
         $this->typoScriptRuntime = $this->typoScriptService->createRuntime($currentSiteNode, $this->controllerContext);
         if (isset($this->options['enableContentCache']) && $this->options['enableContentCache'] !== null) {
             $this->typoScriptRuntime->setEnableContentCache($this->options['enableContentCache']);
         }
     }
     return $this->typoScriptRuntime;
 }
 /**
  * Create a TypoScript runtime with the test base TypoScript and an optional additional fixture
  *
  * @param string $additionalTypoScriptFile
  * @return \TYPO3\TypoScript\Core\Runtime
  */
 protected function createRuntimeWithFixtures($additionalTypoScriptFile = null)
 {
     $typoScriptService = new TypoScriptService();
     $typoScriptService->setSiteRootTypoScriptPattern(__DIR__ . '/Fixtures/BaseTypoScript.ts2');
     if ($additionalTypoScriptFile !== null) {
         $typoScriptService->setAppendTypoScriptIncludes(array($additionalTypoScriptFile));
     }
     $controllerContext = $this->buildMockControllerContext();
     $runtime = $typoScriptService->createRuntime($this->node->getParent(), $controllerContext);
     return $runtime;
 }