public function testHelpAttr() { $form =
$this->factory->
createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', null,
[ 'help' => 'Help text test!',
'help_attr' =>
[ 'class' => 'class-test',
],
]);
$view =
$form->
createView();
$html =
$this->
renderHelp($view);
$this->
assertMatchesXpath($html,
'/div
[@id="name_help"]
[@class="class-test help-text"]
[.="[trans]Help text test![/trans]"]
'
);
} public function testHelpHtmlDefaultIsFalse() { $form =
$this->factory->
createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', null,
[