File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1194,15 +1194,18 @@ public function testLoaderCachingWithParameters()
11941194 'property3 ' => 2 ,
11951195 ));
11961196
1197- $ choiceList1 = $ form ->get ('property1 ' )->getConfig ()->getOption ('choice_list ' );
1198- $ choiceList2 = $ form ->get ('property2 ' )->getConfig ()->getOption ('choice_list ' );
1199- $ choiceList3 = $ form ->get ('property3 ' )->getConfig ()->getOption ('choice_list ' );
1197+ $ choiceLoader1 = $ form ->get ('property1 ' )->getConfig ()->getOption ('choice_loader ' );
1198+ $ choiceLoader2 = $ form ->get ('property2 ' )->getConfig ()->getOption ('choice_loader ' );
1199+ $ choiceLoader3 = $ form ->get ('property3 ' )->getConfig ()->getOption ('choice_loader ' );
12001200
1201- $ this ->assertInstanceOf ('Symfony\Component\Form\ChoiceList\ChoiceListInterface ' , $ choiceList1 );
1202- $ this ->assertSame ($ choiceList1 , $ choiceList2 );
1203- $ this ->assertSame ($ choiceList1 , $ choiceList3 );
1201+ $ this ->assertInstanceOf ('Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' , $ choiceLoader1 );
1202+ $ this ->assertSame ($ choiceLoader1 , $ choiceLoader2 );
1203+ $ this ->assertSame ($ choiceLoader1 , $ choiceLoader3 );
12041204 }
12051205
1206+ /**
1207+ * @group legacy
1208+ */
12061209 public function testCacheChoiceLists ()
12071210 {
12081211 $ entity1 = new SingleIntIdEntity (1 , 'Foo ' );
You can’t perform that action at this time.
0 commit comments