/**
  * Test if wmode is returned if set in banner
  *
  * @test
  * @return void
  */
 public function viewHelperReturnsValueForWmodeFromBanner()
 {
     $viewHelper = new ParamsViewHelper();
     $settings = array();
     $settings['settings']['defaultFlashVars']['wmode'] = 'opaque';
     $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->setFlashWmode('someValue');
     $actualResult = $viewHelper->render($banner, 'wmode');
     $this->assertEquals('someValue', $actualResult);
 }
Exemple #2
0
 /**
  * Test if wmode can be set
  *
  * @test
  * @return void
  */
 public function flashWmodeCanBeSetTest()
 {
     $flashWmode = 'opaque';
     $this->fixture->setFlashWmode($flashWmode);
     $this->assertEquals($flashWmode, $this->fixture->getFlashWmode());
 }