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 a0945fc commit 65a765fCopy full SHA for 65a765f
src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php
@@ -1689,6 +1689,18 @@ public function testSubmitMultipleExpandedNumericChoices()
1689
$this->assertNull($form[4]->getViewData());
1690
}
1691
1692
+ public function testSubmitMultipleChoicesInts()
1693
+ {
1694
+ $form = $this->factory->create(static::TESTED_TYPE, null, array(
1695
+ 'multiple' => true,
1696
+ 'choices' => $this->numericChoicesFlipped,
1697
+ ));
1698
+
1699
+ $form->submit(array(1, 2));
1700
1701
+ $this->assertTrue($form->isSynchronized());
1702
+ }
1703
1704
public function testSingleSelectedObjectChoices()
1705
{
1706
$view = $this->factory->create(static::TESTED_TYPE, $this->objectChoices[3], array(
0 commit comments