8000 [Form] Added test for "label" option to accept the value "0" · symfony/symfony@00fbb7e · GitHub
[go: up one dir, main page]

Skip to content

Commit 00fbb7e

Browse files
committed
[Form] Added test for "label" option to accept the value "0"
1 parent 0fb397c commit 00fbb7e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,4 +659,15 @@ public function testNormDataIsPassedToView()
659659
$this->assertSame('foo', $view->vars['data']);
660660
$this->assertSame('bar', $view->vars['value']);
661661
}
662+
663+
// https://github.com/symfony/symfony/issues/6862
664+
public function testPassZeroLabelToView()
665+
{
666+
$view = $this->factory->create('form', null, array(
667+
'label' => '0'
668+
))
669+
->createView();
670+
671+
$this->assertSame('0', $view->vars['label']);
672+
}
662673
}

0 commit comments

Comments
 (0)
0