Skip to content
Permalink
Browse files

Add missing test that is present in 3.x.

  • Loading branch information...
dereuromark committed Jan 4, 2016
1 parent a2ce6c8 commit 7076e6d481fde9490a1e2fd2d14ae339da583208
Showing with 21 additions and 0 deletions.
  1. +21 −0 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -8598,7 +8598,28 @@ public function testCreate() {
$this->assertTags($result, $expected);
}
/**
* Test create() with no URL (no "action" attribute for <form> tag)
*
* @return void
*/
public function testCreateNoUrl() {
$result = $this->Form->create(false, array('url' => false));
$expected = array(
'form' => array(
'id' => 'addForm',
'method' => 'post',
'accept-charset' => strtolower(Configure::read('App.encoding'))
),
'div' => array('style' => 'display:none;'),
'input' => array('type' => 'hidden', 'name' => '_method', 'value' => 'POST'),
'/div'
);
$this->assertHtml($expected, $result);
}
/**
* Test the onsubmit option for create()
*
* @return void

0 comments on commit 7076e6d

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