@@ -15,7 +15,7 @@ abstract class AbstractBootstrap3HorizontalLayoutTest extends AbstractBootstrap3
15
15
{
16
16
public function testLabelOnForm ()
17
17
{
18
- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\DateType ' );
18
+ $ form = $ this ->factory ->createNamed ('name ' , 'date ' );
19
19
$ view = $ form ->createView ();
20
20
$ this ->renderWidget ($ view , array ('label ' => 'foo ' ));
21
21
$ html = $ this ->renderLabel ($ view );
@@ -30,7 +30,7 @@ public function testLabelOnForm()
30
30
31
31
public function testLabelDoesNotRenderFieldAttributes ()
32
32
{
33
- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
33
+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' );
34
34
$ html = $ this ->renderLabel ($ form ->createView (), null , array (
35
35
'attr ' => array (
36
36
'class ' => 'my&class ' ,
@@ -47,7 +47,7 @@ public function testLabelDoesNotRenderFieldAttributes()
47
47
48
48
public function testLabelWithCustomAttributesPassedDirectly ()
49
49
{
50
- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
50
+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' );
51
51
$ html = $ this ->renderLabel ($ form ->createView (), null , array (
52
52
'label_attr ' => array (
53
53
'class ' => 'my&class ' ,
@@ -64,7 +64,7 @@ public function testLabelWithCustomAttributesPassedDirectly()
64
64
65
65
public function testLabelWithCustomTextAndCustomAttributesPassedDirectly ()
66
66
{
67
- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' );
67
+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' );
68
68
$ html = $ this ->renderLabel ($ form ->createView (), 'Custom label ' , array (
69
69
'label_attr ' => array (
70
70
'class ' => 'my&class ' ,
@@ -82,7 +82,7 @@ public function testLabelWithCustomTextAndCustomAttributesPassedDirectly()
82
82
83
83
public function testLabelWithCustomTextAsOptionAndCustomAttributesPassedDirectly ()
84
84
{
85
- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\TextType ' , null , array (
85
+ $ form = $ this ->factory ->createNamed ('name ' , 'text ' , null , array (
86
86
'label ' => 'Custom label ' ,
87
87
));
88
88
$ html = $ this ->renderLabel ($ form ->createView (), null , array (
@@ -102,7 +102,7 @@ public function testLabelWithCustomTextAsOptionAndCustomAttributesPassedDirectly
102
102
103
103
public function testStartTag ()
104
104
{
105
- $ form = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
105
+ $ form = $ this ->factory ->create ('form ' , null , array (
106
106
'method ' => 'get ' ,
107
107
'action ' => 'http://example.com/directory ' ,
108
108
));
@@ -114,7 +114,7 @@ public function testStartTag()
114
114
115
115
public function testStartTagWithOverriddenVars ()
116
116
{
117
- $ form = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
117
+ $ form = $ this ->factory ->create ('form ' , null , array (
118
118
'method ' => 'put ' ,
119
119
'action ' => 'http://example.com/directory ' ,
120
120
));
@@ -129,11 +129,11 @@ public function testStartTagWithOverriddenVars()
129
129
130
130
public function testStartTagForMultipartForm ()
131
131
{
132
- $ form = $ this ->factory ->createBuilder ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
132
+ $ form = $ this ->factory ->createBuilder ('form ' , null , array (
133
133
'method ' => 'get ' ,
134
134
'action ' => 'http://example.com/directory ' ,
135
135
))
136
- ->add ('file ' , 'Symfony\Component\Form\Extension\Core\Type\FileType ' )
136
+ ->add ('file ' , 'file ' )
137
137
->getForm ();
138
138
139
139
$ html = $ this ->renderStart ($ form ->createView ());
@@ -143,7 +143,7 @@ public function testStartTagForMultipartForm()
143
143
144
144
public function testStartTagWithExtraAttributes ()
145
145
{
146
- $ form = $ this ->factory ->create ('Symfony\Component\Form\Extension\Core\Type\FormType ' , null , array (
146
+ $ form = $ this ->factory ->create ('form ' , null , array (
147
147
'method ' => 'get ' ,
148
148
'action ' => 'http://example.com/directory ' ,
149
149
));
0 commit comments