@@ -5162,7 +5162,7 @@ function testButton() {
5162
5162
public function testPostButton () {
5163
5163
$ result = $ this ->Form ->postButton ('Hi ' , '/controller/action ' );
5164
5164
$ this ->assertTags ($ result , array (
5165
- 'form ' => array ('method ' => 'post ' , 'action ' => '/controller/action ' , 'accept-charset ' => 'utf-8 ' ),
5165
+ 'form ' => array ('method ' => 'post ' , 'action ' => '/controller/action ' , 'accept-charset ' => 'utf-8 ' , ' style ' => ' display:none; ' ),
5166
5166
'div ' => array ('style ' => 'display:none; ' ),
5167
5167
'input ' => array ('type ' => 'hidden ' , 'name ' => '_method ' , 'value ' => 'POST ' ),
5168
5168
'/div ' ,
@@ -5184,7 +5184,10 @@ public function testPostButton() {
5184
5184
public function testPostLink () {
5185
5185
$ result = $ this ->Form ->postLink ('Delete ' , '/posts/delete/1 ' );
5186
5186
$ this ->assertTags ($ result , array (
5187
- 'form ' => array ('method ' => 'post ' , 'action ' => '/posts/delete/1 ' , 'accept-charset ' => 'utf-8 ' , 'name ' => 'preg:/post_\w+/ ' , 'id ' => 'preg:/post_\w+/ ' ),
5187
+ 'form ' => array (
5188
+ 'method ' => 'post ' , 'action ' => '/posts/delete/1 ' , 'accept-charset ' => 'utf-8 ' ,
5189
+ 'name ' => 'preg:/post_\w+/ ' , 'id ' => 'preg:/post_\w+/ ' , 'style ' => 'display:none; '
5190
+ ),
5188
5191
'div ' => array ('style ' => 'display:none; ' ),
5189
5192
'input ' => array ('type ' => 'hidden ' , 'name ' => '_method ' , 'value ' => 'POST ' ),
5190
5193
'/div ' ,
@@ -5196,7 +5199,10 @@ public function testPostLink() {
5196
5199
5197
5200
$ result = $ this ->Form ->postLink ('Delete ' , '/posts/delete/1 ' , array (), 'Confirm? ' );
5198
5201
$ this ->assertTags ($ result , array (
5199
- 'form ' => array ('method ' => 'post ' , 'action ' => '/posts/delete/1 ' , 'accept-charset ' => 'utf-8 ' , 'name ' => 'preg:/post_\w+/ ' , 'id ' => 'preg:/post_\w+/ ' ),
5202
+ 'form ' => array (
5203
+ 'method ' => 'post ' , 'action ' => '/posts/delete/1 ' , 'accept-charset ' => 'utf-8 ' ,
5204
+ 'name ' => 'preg:/post_\w+/ ' , 'id ' => 'preg:/post_\w+/ ' , 'style ' => 'display:none; '
5205
+ ),
5200
5206
'div ' => array ('style ' => 'display:none; ' ),
5201
5207
'input ' => array ('type ' => 'hidden ' , 'name ' => '_method ' , 'value ' => 'POST ' ),
5202
5208
'/div ' ,
0 commit comments