Skip to content
Permalink
Browse files

Adding a test for double escaped form urls.

Refs #1748
  • Loading branch information...
markstory committed Jun 23, 2011
1 parent de893b1 commit f3f0363df3d70ef5173f06fd9a80bea4d4df87c7
Showing with 22 additions and 1 deletion.
  1. +22 −1 cake/tests/cases/libs/view/helpers/form.test.php
@@ -5829,7 +5829,28 @@ function testCreateQuerystringParams() {
'input' => array('type' => 'hidden', 'name' => '_method', 'value' => 'POST'),
'/div'
);
$this->assertTags($result, $expected, true);
$this->assertTags($result, $expected);
$result = $this->Form->create('Contact', array(
'type' => 'post',
'url' => array(
'controller' => 'controller',
'action' => 'action',
'?' => array('param1' => 'value1', 'param2' => 'value2')
)
));
$expected = array(
'form' => array(
'id' => 'ContactAddForm',
'method' => 'post',
'action' => '/controller/action?param1=value1&param2=value2',
'accept-charset' => $encoding
),
'div' => array('style' => 'display:none;'),
'input' => array('type' => 'hidden', 'name' => '_method', 'value' => 'POST'),
'/div'
);
$this->assertTags($result, $expected);
}
/**

0 comments on commit f3f0363

Please sign in to comment.
You can’t perform that action at this time.