Skip to content

Commit 66000e2

Browse files
committed
Add a test
1 parent a1f41e5 commit 66000e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ public function testLabelWithCustomTextAsOptionAndCustomAttributesPassedDirectly
100100
);
101101
}
102102

103+
public function testLabelNoDivIfFalse()
104+
{
105+
$form = $this->factory->createNamed('name', 'date', null, array('label' => false));
106+
$view = $form->createView();
107+
$this->renderWidget($view);
108+
$html = $this->renderLabel($view);
109+
110+
$this->assertEmpty($html, 'The label should not be rendered');
111+
}
112+
103113
public function testStartTag()
104114
{
105115
$form = $this->factory->create('form', null, array(

0 commit comments

Comments
 (0)