From 59cf6c8fc0fb1d6c4b41b80eb6e1c49f4e52aaba Mon Sep 17 00:00:00 2001 From: gwoo Date: Tue, 22 Jan 2008 07:49:53 +0000 Subject: [PATCH] ajax test updated, closes #3950 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6402 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/ajax.test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/ajax.test.php b/cake/tests/cases/libs/view/helpers/ajax.test.php index 53a333bd6..9e6bc901f 100644 --- a/cake/tests/cases/libs/view/helpers/ajax.test.php +++ b/cake/tests/cases/libs/view/helpers/ajax.test.php @@ -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')); $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('/name="SomeFormName"/', $result); } function testSortable() {