@@ -37,11 +37,6 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase
37
37
*/
38
38
private $ registry ;
39
39
40
- /**
41
- * @var \PHPUnit_Framework_MockObject_MockObject
42
- */
43
- private $ resolvedTypeFactory ;
44
-
45
40
/**
46
41
* @var \PHPUnit_Framework_MockObject_MockObject
47
42
*/
@@ -54,12 +49,11 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase
54
49
55
50
protected function setUp ()
56
51
{
57
- $ this ->resolvedTypeFactory = $ this ->getMockBuilder ('Symfony\Component\Form\ResolvedFormTypeFactoryInterface ' )->getMock ();
58
52
$ this ->guesser1 = $ this ->getMockBuilder ('Symfony\Component\Form\FormTypeGuesserInterface ' )->getMock ();
59
53
$ this ->guesser2 = $ this ->getMockBuilder ('Symfony\Component\Form\FormTypeGuesserInterface ' )->getMock ();
60
54
$ this ->registry = $ this ->getMockBuilder ('Symfony\Component\Form\FormRegistryInterface ' )->getMock ();
61
55
$ 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 );
63
57
64
58
$ this ->registry ->expects ($ this ->any ())
65
59
->method ('getTypeGuesser ' )
@@ -244,7 +238,7 @@ public function testCreateBuilderForPropertyWithoutTypeGuesser()
244
238
$ registry = $ this ->getMockBuilder ('Symfony\Component\Form\FormRegistryInterface ' )->getMock ();
245
239
$ factory = $ this ->getMockBuilder ('Symfony\Component\Form\FormFactory ' )
246
240
->setMethods (array ('createNamedBuilder ' ))
247
- ->setConstructorArgs (array ($ registry, $ this -> resolvedTypeFactory ))
241
+ ->setConstructorArgs (array ($ registry ))
248
242
->getMock ();
249
243
250
244
$ factory ->expects ($ this ->once ())
@@ -474,7 +468,7 @@ private function getMockFactory(array $methods = array())
474
468
{
475
469
return $ this ->getMockBuilder ('Symfony\Component\Form\FormFactory ' )
476
470
->setMethods ($ methods )
477
- ->setConstructorArgs (array ($ this ->registry , $ this -> resolvedTypeFactory ))
471
+ ->setConstructorArgs (array ($ this ->registry ))
478
472
->getMock ();
479
473
}
480
474
0 commit comments