@@ -172,13 +172,13 @@ public function testAddUsingNameAndType()
172
172
173
173
$ this ->factory ->expects ($ this ->once ())
174
174
->method ('createNamed ' )
175
- ->with ('foo ' , 'text ' , null , array (
175
+ ->with ('foo ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' , null , array (
176
176
'bar ' => 'baz ' ,
177
177
'auto_initialize ' => false ,
178
178
))
179
179
->will ($ this ->returnValue ($ child ));
180
180
181
- $ this ->form ->add ('foo ' , 'text ' , array ('bar ' => 'baz ' ));
181
+ $ this ->form ->add ('foo ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' , array ('bar ' => 'baz ' ));
182
182
183
183
$ this ->assertTrue ($ this ->form ->has ('foo ' ));
184
184
$ this ->assertSame ($ this ->form , $ child ->getParent ());
@@ -191,14 +191,14 @@ public function testAddUsingIntegerNameAndType()
191
191
192
192
$ this ->factory ->expects ($ this ->once ())
193
193
->method ('createNamed ' )
194
- ->with ('0 ' , 'text ' , null , array (
194
+ ->with ('0 ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' , null , array (
195
195
'bar ' => 'baz ' ,
196
196
'auto_initialize ' => false ,
197
197
))
198
198
->will ($ this ->returnValue ($ child ));
199
199
200
200
// in order to make casting unnecessary
201
- $ this ->form ->add (0 , 'text ' , array ('bar ' => 'baz ' ));
201
+ $ this ->form ->add (0 , 'Symfony\Component\Form\Extension\Core\Type\TextType ' , array ('bar ' => 'baz ' ));
202
202
203
203
$ this ->assertTrue ($ this ->form ->has (0 ));
204
204
$ this ->assertSame ($ this ->form , $ child ->getParent ());
@@ -211,7 +211,7 @@ public function testAddWithoutType()
211
211
212
212
$ this ->factory ->expects ($ this ->once ())
213
213
->method ('createNamed ' )
214
- ->with ('foo ' , 'text ' )
214
+ ->with ('foo ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' )
215
215
->will ($ this ->returnValue ($ child ));
216
216
217
217
$ this ->form ->add ('foo ' );
0 commit comments