class FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTestCase
{ use RuntimeLoaderProvider;
private FormRenderer
$renderer;
protected function setUp(): void
{ parent::
setUp();
$loader =
new FilesystemLoader([ __DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
]);
$environment =
new Environment($loader,
['strict_variables' => true
]);
$environment->
addExtension(new TranslationExtension(new StubTranslator()));
$environment->
addExtension(new FormExtension());
$rendererEngine =
new TwigRendererEngine([ 'bootstrap_3_layout.html.twig',
'custom_widgets.html.twig',
],