10000 Add test without help set · symfony/symfony@c934e49 · GitHub
[go: up one dir, main page]

Skip to content

Commit c934e49

Browse files
Mathieu Piotmpiot
Mathieu Piot
authored andcommitted
Add test without help set
1 parent 8094804 commit c934e49

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Component/Form/Tests/AbstractLayoutTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,15 @@ public function testHelp()
426426
);
427427
}
428428

429+
public function testHelpNotSet()
430+
{
431+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType');
432+
$view = $form->createView();
433+
$html = $this->renderHelp($view);
434+
435+
$this->assertMatchesXpath($html, '');
436+
}
437+
429438
public function testErrors()
430439
{
431440
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType');

0 commit comments

Comments
 (0)
0