Skip to content

Commit 4a4ad58

Browse files
[Bridge/Doctrine+Ldap] Fix tests
1 parent 856de74 commit 4a4ad58

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/Form/Type/EntityTypeTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -995,13 +995,13 @@ public function testLoaderCaching()
995995
'property3' => 2,
996996
));
997997

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');
10011001

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);
10051005
}
10061006

10071007
public function testCacheChoiceLists()
@@ -1024,8 +1024,8 @@ public function testCacheChoiceLists()
10241024
'choice_label' => 'name',
10251025
));
10261026

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'));
10291029
}
10301030

10311031
/**

0 commit comments

Comments
 (0)