mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +00:00
parent
55387ef77f
commit
68378f2d06
1 changed files with 21 additions and 0 deletions
|
@ -6165,6 +6165,27 @@ class FormHelperTest extends CakeTestCase {
|
||||||
'/div'
|
'/div'
|
||||||
);
|
);
|
||||||
$this->assertTags($result, $expected);
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue