8000 merged branch bschussek/issue6862 (PR #7154) · symfony/symfony@f61295d · GitHub
[go: up one dir, main page]

Skip to content

Commit f61295d

Browse files
committed
merged branch bschussek/issue6862 (PR #7154)
This PR was merged into the 2.1 branch. Commits ------- 00fbb7e [Form] Added test for "label" option to accept the value "0" Discussion ---------- [Form] Added test for "label" option to accept the value "0" | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #6862 | License | MIT | Doc PR | -
2 parents 0fb397c + 00fbb7e commit f61295d

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