@@ -995,13 +995,13 @@ public function testLoaderCaching()
995
995
'property3 ' => 2 ,
996
996
));
997
997
998
- $ choiceList1 = $ form ->get ('property1 ' )->getConfig ()->getOption ('choice_list ' );
999
- $ choiceList2 = $ form ->get ('property2 ' )->getConfig ()->getOption ('choice_list ' );
1000
- $ choiceList3 = $ form ->get ('property3 ' )->getConfig ()->getOption ('choice_list ' );
998
+ $ choiceLoader1 = $ form ->get ('property1 ' )->getConfig ()->getOption ('choice_loader ' );
999
+ $ choiceLoader2 = $ form ->get ('property2 ' )->getConfig ()->getOption ('choice_loader ' );
1000
+ $ choiceLoader3 = $ form ->get ('property3 ' )->getConfig ()->getOption ('choice_loader ' );
1001
1001
1002
- $ this ->assertInstanceOf ('Symfony\Component\Form\ChoiceList\ChoiceListInterface ' , $ choiceList1 );
1003
- $ this ->assertSame ($ choiceList1 , $ choiceList2 );
1004
- $ this ->assertSame ($ choiceList1 , $ choiceList3 );
1002
+ $ this ->assertInstanceOf ('Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' , $ choiceLoader1 );
1003
+ $ this ->assertSame ($ choiceLoader1 , $ choiceLoader2 );
1004
+ $ this ->assertSame ($ choiceLoader1 , $ choiceLoader3 );
1005
1005
}
1006
1006
1007
1007
public function testCacheChoiceLists ()
@@ -1024,8 +1024,8 @@ public function testCacheChoiceLists()
1024
1024
'choice_label ' => 'name ' ,
1025
1025
));
1026
1026
1027
- $ this ->assertInstanceOf ('Symfony\Component\Form\ChoiceList\ChoiceListInterface ' , $ field1 ->getConfig ()->getOption ('choice_list ' ));
1028
- $ this ->assertSame ($ field1 ->getConfig ()->getOption ('choice_list ' ), $ field2 ->getConfig ()->getOption ('choice_list ' ));
1027
+ $ this ->assertInstanceOf ('Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' , $ field1 ->getConfig ()->getOption ('choice_loader ' ));
1028
+ $ this ->assertSame ($ field1 ->getConfig ()->getOption ('choice_loader ' ), $ field2 ->getConfig ()->getOption ('choice_loader ' ));
1029
1029
}
1030
1030
1031
1031
/**
0 commit comments