예제 #1
0
 public function testSetFormTheme()
 {
     $theme = 'MyBundle::forms.html.twig';
     $this->formRenderer->expects($this->once())->method('addDefaultThemes')->with($theme);
     $this->renderer->setFormTheme($theme);
 }
예제 #2
0
 public function testSetFormTheme()
 {
     $theme = 'MyBundle:Layout\\php';
     $this->formRenderer->expects($this->once())->method('addDefaultThemes')->with($theme);
     $this->helper->setFormTheme($theme);
 }
예제 #3
0
 /**
  * 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);
 }