minor #29769 [Form] Fix FormDefaultChoiceListFactory test (vudaltsov)

This PR was merged into the 3.4 branch.

Discussion
----------

[Form] Fix FormDefaultChoiceListFactory test

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/pull/29731#pullrequestreview-189023682
| License       | MIT
| Doc PR        | n/a

`$groupBy` is either `null` or `callable`. Passing `array()` is wrong.

Commits
-------

b8f6390ef9 Fixed groupBy argument value in DefaultChoiceListFactoryTest
This commit is contained in:
Fabien Potencier 2019-01-04 16:47:57 +01:00
commit a1c8da08f6

View File

@ -443,7 +443,7 @@ class DefaultChoiceListFactoryTest extends TestCase
array($this->obj2, $this->obj3),
null, // label
null, // index
array() // ignored
null // group
);
$this->assertFlatView($view);