public function testSetFormTheme() { // prepare test data $this->rawLayout->add('root', null, 'root'); // do test $this->rawLayout->setFormTheme(['MyBundle:Layout:theme1.html.twig', 'MyBundle:Layout:theme2.html.twig']); $this->rawLayout->setFormTheme('MyBundle:Layout:theme3.html.twig'); $formThemes = $this->rawLayout->getFormThemes(); $this->assertSame(['MyBundle:Layout:theme1.html.twig', 'MyBundle:Layout:theme2.html.twig', 'MyBundle:Layout:theme3.html.twig'], $formThemes); }