/**
  * Test if allowscriptaccess is returned if set in banner
  *
  * @test
  * @return void
  */
 public function viewHelperReturnsValueForAllowScriptAccessFromBanner()
 {
     $viewHelper = new ParamsViewHelper();
     $settings = array();
     $settings['settings']['defaultFlashVars']['allowScriptAccess'] = 'sameDomain';
     $templateVariableContainer = new TemplateVariableContainer($settings);
     if (method_exists($viewHelper, 'setTemplateVariableContainer')) {
         $viewHelper->setTemplateVariableContainer($templateVariableContainer);
     } else {
         $renderingContext = new RenderingContext();
         $renderingContext->injectTemplateVariableContainer($templateVariableContainer);
         $viewHelper->setRenderingContext($renderingContext);
     }
     $banner = new Banner();
     $banner->setFlashAllowScriptAccess('someValue');
     $actualResult = $viewHelper->render($banner, 'allowScriptAccess');
     $this->assertEquals('someValue', $actualResult);
 }