public function testSetBlockTheme() { $theme = 'MyBungle::blocks.html.twig'; $view = new BlockView(); $this->innerRenderer->expects($this->once())->method('setTheme')->with($this->identicalTo($view), $theme); $this->renderer->setBlockTheme($view, $theme); }
/** * @param TwigRendererInterface $innerRenderer * @param FormRendererEngineInterface $formRendererEngine * @param \Twig_Environment $environment */ public function __construct(TwigRendererInterface $innerRenderer, FormRendererEngineInterface $formRendererEngine, \Twig_Environment $environment) { $innerRenderer->setEnvironment($environment); parent::__construct($innerRenderer, $formRendererEngine); }
public function testSetFormTheme() { $theme = 'MyBundle::forms.html.twig'; $this->formRenderer->expects($this->once())->method('addDefaultThemes')->with($theme); $this->renderer->setFormTheme($theme); }
/** * @param TwigRendererInterface $innerRenderer * @param \Twig_Environment $environment */ public function __construct(TwigRendererInterface $innerRenderer, \Twig_Environment $environment) { $innerRenderer->setEnvironment($environment); parent::__construct($innerRenderer); }