We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb397c commit 00fbb7eCopy full SHA for 00fbb7e
src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php
@@ -659,4 +659,15 @@ public function testNormDataIsPassedToView()
659
$this->assertSame('foo', $view->vars['data']);
660
$this->assertSame('bar', $view->vars['value']);
661
}
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
+ }
673
0 commit comments