@@ -6,13 +6,13 @@ class FormOpenTest extends TestCase
6
6
{
7
7
public function testFormCanBeCreated ()
8
8
{
9
- $ form = new FormOpen ;
9
+ $ form = new FormOpen () ;
10
10
$ this ->assertInstanceOf ('AdamWathan\Form\Elements\FormOpen ' , $ form );
11
11
}
12
12
13
13
public function testRenderBasicFormOpen ()
14
14
{
15
- $ form = new FormOpen ;
15
+ $ form = new FormOpen () ;
16
16
$ expected = '<form method="POST" action=""> ' ;
17
17
$ result = $ form ->render ();
18
18
@@ -21,7 +21,7 @@ public function testRenderBasicFormOpen()
21
21
22
22
public function testRenderPostFormOpen ()
23
23
{
24
- $ form = new FormOpen ;
24
+ $ form = new FormOpen () ;
25
25
$ expected = '<form method="POST" action=""> ' ;
26
26
$ result = $ form ->post ()->render ();
27
27
@@ -30,7 +30,7 @@ public function testRenderPostFormOpen()
30
30
31
31
public function testRenderGetFormOpen ()
32
32
{
33
- $ form = new FormOpen ;
33
+ $ form = new FormOpen () ;
34
34
$ expected = '<form method="GET" action=""> ' ;
35
35
$ result = $ form ->get ()->render ();
36
36
@@ -39,7 +39,7 @@ public function testRenderGetFormOpen()
39
39
40
40
public function testRenderPutFormOpen ()
41
41
{
42
- $ form = new FormOpen ;
42
+ $ form = new FormOpen () ;
43
43
$ expected = '<form method="POST" action=""><input type="hidden" name="_method" value="PUT"> ' ;
44
44
$ result = $ form ->put ()->render ();
45
45
@@ -48,7 +48,7 @@ public function testRenderPutFormOpen()
48
48
49
49
public function testRenderPatchFormOpen ()
50
50
{
51
- $ form = new FormOpen ;
51
+ $ form = new FormOpen () ;
52
52
$ expected = '<form method="POST" action=""><input type="hidden" name="_method" value="PATCH"> ' ;
53
53
$ result = $ form ->patch ()->render ();
54
54
@@ -57,7 +57,7 @@ public function testRenderPatchFormOpen()
57
57
58
58
public function testRenderDeleteFormOpen ()
59
59
{
60
- $ form = new FormOpen ;
60
+ $ form = new FormOpen () ;
61
61
$ expected = '<form method="POST" action=""><input type="hidden" name="_method" value="DELETE"> ' ;
62
62
$ result = $ form ->delete ()->render ();
63
63
@@ -66,7 +66,7 @@ public function testRenderDeleteFormOpen()
66
66
67
67
public function testSetAction ()
68
68
{
69
- $ form = new FormOpen ;
69
+ $ form = new FormOpen () ;
70
70
$ expected = '<form method="POST" action="/test"> ' ;
71
71
$ result = $ form ->action ('/test ' )->render ();
72
72
@@ -75,7 +75,7 @@ public function testSetAction()
75
75
76
76
public function testSetCustomAttribute ()
77
77
{
78
- $ form = new FormOpen ;
78
+ $ form = new FormOpen () ;
79
79
$ expected = '<form method="POST" action="" data-test="sample"> ' ;
80
80
$ result = $ form ->attribute ('data-test ' , 'sample ' )->render ();
81
81
@@ -84,7 +84,7 @@ public function testSetCustomAttribute()
84
84
85
85
public function testClearCustomAttribute ()
86
86
{
87
- $ form = new FormOpen ;
87
+ $ form = new FormOpen () ;
88
88
$ expected = '<form method="POST" action=""> ' ;
89
89
$ result = $ form ->attribute ('data-test ' , 'sample ' )->clear ('data-test ' )->render ();
90
90
@@ -93,7 +93,7 @@ public function testClearCustomAttribute()
93
93
94
94
public function testMultipart ()
95
95
{
96
- $ form = new FormOpen ;
96
+ $ form = new FormOpen () ;
97
97
$ expected = '<form method="POST" action="" enctype="multipart/form-data"> ' ;
98
98
$ result = $ form ->multipart ()->render ();
99
99
@@ -102,7 +102,7 @@ public function testMultipart()
102
102
103
103
public function testEncodingType ()
104
104
{
105
- $ form = new FormOpen ;
105
+ $ form = new FormOpen () ;
106
106
$ expected = '<form method="POST" action="" enctype="custom"> ' ;
107
107
$ result = $ form ->encodingType ('custom ' )->render ();
108
108
@@ -111,7 +111,7 @@ public function testEncodingType()
111
111
112
112
public function testCanRenderCsrfToken ()
113
113
{
114
- $ open = new FormOpen ;
114
+ $ open = new FormOpen () ;
115
115
$ expected = '<form method="POST" action=""><input type="hidden" name="_token" value="abc123"> ' ;
116
116
$ result = (string ) $ open ->token ('abc123 ' );
117
117
@@ -120,7 +120,7 @@ public function testCanRenderCsrfToken()
120
120
121
121
public function testRenderCustomMethodWithToken ()
122
122
{
123
- $ open = new FormOpen ;
123
+ $ open = new FormOpen () ;
124
124
$ expected = '<form method="POST" action=""><input type="hidden" name="_token" value="abc123"><input type="hidden" name="_method" value="DELETE"> ' ;
125
125
$ result = $ open ->token ('abc123 ' )->delete ()->render ();
126
126
0 commit comments