mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
ajax test updated, closes #3950
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6402 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e127d8f86f
commit
59cf6c8fc0
1 changed files with 2 additions and 2 deletions
|
@ -161,9 +161,9 @@ class AjaxTest extends UnitTestCase {
|
||||||
$result = $this->Ajax->form('showForm', 'post', array('model' => 'Form', 'url' => array('action' => 'showForm', 'controller' => 'forms'), 'update' => 'form_box'));
|
$result = $this->Ajax->form('showForm', 'post', array('model' => 'Form', 'url' => array('action' => 'showForm', 'controller' => 'forms'), 'update' => 'form_box'));
|
||||||
$this->assertNoPattern('/model=/', $result);
|
$this->assertNoPattern('/model=/', $result);
|
||||||
|
|
||||||
$result = $this->Ajax->form('showForm', 'post', array('id' => 'MyFormID', 'url' => array('action' => 'showForm', 'controller' => 'forms'), 'update' => 'form_box'));
|
$result = $this->Ajax->form('showForm', 'post', array('name'=> 'SomeFormName', 'id' => 'MyFormID', 'url' => array('action' => 'showForm', 'controller' => 'forms'), 'update' => 'form_box'));
|
||||||
$this->assertPattern('/id="MyFormID"/', $result);
|
$this->assertPattern('/id="MyFormID"/', $result);
|
||||||
|
$this->assertPattern('/name="SomeFormName"/', $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testSortable() {
|
function testSortable() {
|
||||||
|
|
Loading…
Reference in a new issue