Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dec633f

Browse files
committed
Fix unit test choices
1 parent e4682b4 commit dec633f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Component/Form/Tests/ChoiceList/Loader/FilterChoiceLoaderDecoratorTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ public function testLoadChoiceListMixedWithGroupedAndNonGroupedChoices()
5353
return 0 === $choice % 2;
5454
};
5555

56-
$loader = new FilterChoiceLoaderDecorator(new ArrayChoiceLoader([range(1, 9), 'grouped' => range(1, 9)]), $filter);
56+
$loader = new FilterChoiceLoaderDecorator(new ArrayChoiceLoader([range(1, 9), 'grouped' => range(10, 40, 5)]), $filter);
5757

5858
$this->assertEquals(new ArrayChoiceList([
5959
1 => 2,
6060
3 => 4,
6161
5 => 6,
6262
7 => 8,
6363
'grouped' => [
64-
1 => 2,
65-
3 => 4,
66-
5 => 6,
67-
7 => 8,
64+
0 => 10,
65+
2 => 20,
66+
4 => 30,
67+
6 => 40,
6868
],
6969
]), $loader->loadChoiceList());
7070
}

0 commit comments

Comments
 (0)