public function testSetFormTheme() { $theme = 'MyBundle::forms.html.twig'; $this->formRenderer->expects($this->once())->method('addDefaultThemes')->with($theme); $this->renderer->setFormTheme($theme); }
public function testSetFormTheme() { $theme = 'MyBundle:Layout\\php'; $this->formRenderer->expects($this->once())->method('addDefaultThemes')->with($theme); $this->helper->setFormTheme($theme); }
/** * Sets the theme(s) to be used for rendering forms * * The theme format is "<Bundle>:<Controller>". * * @param string|string[] $themes The theme(s). For example 'MuBundle:Layout/php' */ public function setFormTheme($themes) { $this->formRendererEngine->addDefaultThemes($themes); }