/**
  * @test
  * @expectedException \Helhum\TyposcriptRendering\Configuration\ConfigurationBuildingException
  */
 public function buildingConfigurationThrowsExceptionIfInvalidTypesAreGiven()
 {
     $this->configurationBuilder->configurationFor('foo', 'PiBar', array());
 }
コード例 #2
0
 /**
  * @param string $extensionName
  * @param string $pluginName
  * @param string $contextRecord
  * @return array
  */
 public function buildTypoScriptRenderingConfiguration($extensionName, $pluginName, $contextRecord)
 {
     $configurationBuilder = new RecordRenderingConfigurationBuilder(new RenderingContext($GLOBALS['TSFE']));
     return $configurationBuilder->configurationFor($extensionName, $pluginName, $contextRecord);
 }