@@ -37,11 +37,6 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase
3737 */
3838 private $ registry ;
3939
40- /**
41- * @var \PHPUnit_Framework_MockObject_MockObject
42- */
43- private $ resolvedTypeFactory ;
44-
4540 /**
4641 * @var \PHPUnit_Framework_MockObject_MockObject
4742 */
@@ -54,12 +49,11 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase
5449
5550 protected function setUp ()
5651 {
57- $ this ->resolvedTypeFactory = $ this ->getMockBuilder ('Symfony\Component\Form\ResolvedFormTypeFactoryInterface ' )->getMock ();
5852 $ this ->guesser1 = $ this ->getMockBuilder ('Symfony\Component\Form\FormTypeGuesserInterface ' )->getMock ();
5953 $ this ->guesser2 = $ this ->getMockBuilder ('Symfony\Component\Form\FormTypeGuesserInterface ' )->getMock ();
6054 $ this ->registry = $ this ->getMockBuilder ('Symfony\Component\Form\FormRegistryInterface ' )->getMock ();
6155 $ this ->builder = $ this ->getMockBuilder ('Symfony\Component\Form\Test\FormBuilderInterface ' )->getMock ();
62- $ this ->factory = new FormFactory ($ this ->registry , $ this -> resolvedTypeFactory );
56+ $ this ->factory = new FormFactory ($ this ->registry );
6357
6458 $ this ->registry ->expects ($ this ->any ())
6559 ->method ('getTypeGuesser ' )
@@ -244,7 +238,7 @@ public function testCreateBuilderForPropertyWithoutTypeGuesser()
244238 $ registry = $ this ->getMockBuilder ('Symfony\Component\Form\FormRegistryInterface ' )->getMock ();
245239 $ factory = $ this ->getMockBuilder ('Symfony\Component\Form\FormFactory ' )
246240 ->setMethods (array ('createNamedBuilder ' ))
247- ->setConstructorArgs (array ($ registry, $ this -> resolvedTypeFactory ))
241+ ->setConstructorArgs (array ($ registry ))
248242 ->getMock ();
249243
250244 $ factory ->expects ($ this ->once ())
@@ -474,7 +468,7 @@ private function getMockFactory(array $methods = array())
474468 {
475469 return $ this ->getMockBuilder ('Symfony\Component\Form\FormFactory ' )
476470 ->setMethods ($ methods )
477- ->setConstructorArgs (array ($ this ->registry , $ this -> resolvedTypeFactory ))
471+ ->setConstructorArgs (array ($ this ->registry ))
478472 ->getMock ();
479473 }
480474
0 commit comments