@@ -15,7 +15,7 @@ abstract class AbstractBootstrap3HorizontalLayoutTest extends AbstractBootstrap3
1515{
1616 public function testLabelOnForm ()
1717 {
18- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\DateType ' );
18+ $ form = $ this ->factory ->createNamed ('name ' , 'date ' );
1919 $ view = $ form ->createView ();
2020 $ this ->renderWidget ($ view , array ('label ' => 'foo ' ));
2121 $ html = $ this ->renderLabel ($ view );
@@ -30,7 +30,7 @@ public function testLabelOnForm()
3030
3131 public function testLabelDoesNotRenderFieldAttributes ()
3232 {
33- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
33+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' );
3434 $ html = $ this ->renderLabel ($ form ->createView (), null , array (
3535 'attr ' => array (
3636 'class ' => 'my&class ' ,
@@ -47,7 +47,7 @@ public function testLabelDoesNotRenderFieldAttributes()
4747
4848 public function testLabelWithCustomAttributesPassedDirectly ()
4949 {
50- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
50+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' );
5151 $ html = $ this ->renderLabel ($ form ->createView (), null , array (
5252 'label_attr ' => array (
5353 'class ' => 'my&class ' ,
@@ -64,7 +64,7 @@ public function testLabelWithCustomAttributesPassedDirectly()
6464
6565 public function testLabelWithCustomTextAndCustomAttributesPassedDirectly ()
6666 {
67- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
67+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' );
6868 $ html = $ this ->renderLabel ($ form ->createView (), 'Custom label ' , array (
6969 'label_attr ' => array (
7070 'class ' => 'my&class ' ,
@@ -82,7 +82,7 @@ public function testLabelWithCustomTextAndCustomAttributesPassedDirectly()
8282
8383 public function testLabelWithCustomTextAsOptionAndCustomAttributesPassedDirectly ()
8484 {
85- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' , null , array (
85+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' , null , array (
8686 'label ' => 'Custom label ' ,
8787 ));
8888 $ html = $ this ->renderLabel ($ form ->createView (), null , array (
@@ -102,7 +102,7 @@ public function testLabelWithCustomTextAsOptionAndCustomAttributesPassedDirectly
102102
103103 public function testStartTag ()
104104 {
105- $ form = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
105+ $ form = $ this ->factory ->create ('form ' , null , array (
106106 'method ' => 'get ' ,
107107 'action ' => 'http://example.com/directory ' ,
108108 ));
@@ -114,7 +114,7 @@ public function testStartTag()
114114
115115 public function testStartTagWithOverriddenVars ()
116116 {
117- $ form = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
117+ $ form = $ this ->factory ->create ('form ' , null , array (
118118 'method ' => 'put ' ,
119119 'action ' => 'http://example.com/directory ' ,
120120 ));
@@ -129,11 +129,11 @@ public function testStartTagWithOverriddenVars()
129129
130130 public function testStartTagForMultipartForm ()
131131 {
132- $ form = $ this ->factory ->createBuilder ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
132+ $ form = $ this ->factory ->createBuilder ('form ' , null , array (
133133 'method ' => 'get ' ,
134134 'action ' => 'http://example.com/directory ' ,
135135 ))
136- ->add ('file ' , 'Symfony\Component\Form\Extension\Core\Type\FileType ' )
136+ ->add ('file ' , 'file ' )
137137 ->getForm ();
138138
139139 $ html = $ this ->renderStart ($ form ->createView ());
@@ -143,7 +143,7 @@ public function testStartTagForMultipartForm()
143143
144144 public function testStartTagWithExtraAttributes ()
145145 {
146- $ form = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
146+ $ form = $ this ->factory ->create ('form ' , null , array (
147147 'method ' => 'get ' ,
148148 'action ' => 'http://example.com/directory ' ,
149149 ));
0 commit comments