/** * @test * @expectedException \Helhum\TyposcriptRendering\Configuration\ConfigurationBuildingException */ public function buildingConfigurationThrowsExceptionIfInvalidTypesAreGiven() { $this->configurationBuilder->configurationFor('foo', 'PiBar', array()); }
/** * @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); }