diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php
index 031e5a488..f8bbf8c48 100644
--- a/cake/tests/cases/libs/view/helpers/form.test.php
+++ b/cake/tests/cases/libs/view/helpers/form.test.php
@@ -496,7 +496,7 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'password', 'name' => 'data[Contact][password]', 'value' => '', 'id' => 'ContactPassword', 'class' => 'form-error'),
array('div' => array('class' => 'error-message')),
'Please provide a password',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -607,7 +607,7 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'text', 'name' => 'preg:/.+/', 'value' => '', 'id' => 'preg:/.+/', 'class' => 'form-error'),
array('div' => array('class' => 'error-message')),
'This field cannot be left blank',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -623,7 +623,7 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'text', 'name' => 'preg:/.+/', 'value' => '', 'id' => 'preg:/.+/', 'class' => 'form-error'),
array('div' => array('class' => 'error-message')),
'You must provide a URL',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -644,7 +644,7 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'text', 'name' => 'preg:/.+/', 'value' => '', 'id' => 'preg:/.+/', 'class' => 'form-error'),
array('div' => array('class' => 'error-message')),
'This field cannot be empty',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -658,7 +658,7 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'text', 'name' => 'preg:/.+/', 'value' => '', 'id' => 'preg:/.+/', 'class' => 'form-error'),
array('div' => array('class' => 'error-message')),
'This field cannot be empty',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -683,7 +683,7 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'text', 'name' => 'preg:/.+/', 'value' => '', 'id' => 'preg:/.+/', 'class' => 'form-error'),
array('div' => array('class' => 'error-message')),
'You must have a last name',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -748,13 +748,13 @@ class FormHelperTest extends CakeTestCase {
'!label',
array('select' => array('name' => 'data[email]', 'id' => 'email')),
array('option' => array('value' => '')),
- array('!option'),
+ '!option',
array('option' => array('value' => '0')),
'First',
- array('!option'),
+ '!option',
array('option' => array('value' => '1')),
'Second',
- array('!option'),
+ '!option',
'!select',
'!div'
);
@@ -819,7 +819,7 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'text', 'name' => 'data[Model][field]', 'value' => '', 'id' => 'ModelField', 'class' => 'form-error'),
array('div' => array('class' => 'error-message')),
'Badness!',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -834,7 +834,7 @@ class FormHelperTest extends CakeTestCase {
'A message to you, Rudy',
array('div' => array('class' => 'error-message')),
'Badness!',
- array('!div'),
+ '!div',
'!div'
);
$this->assertTags($result, $expected);
@@ -877,13 +877,13 @@ class FormHelperTest extends CakeTestCase {
'!label',
'select' => array('name' => 'data[Model][user_id]', 'id' => 'ModelUserId'),
array('option' => array('value' => '')),
- array('!option'),
+ '!option',
array('option' => array('value' => 'value', 'selected' => 'selected')),
'good',
- array('!option'),
+ '!option',
array('option' => array('value' => 'other')),
'bad',
- array('!option'),
+ '!option',
'!select',
'!div'
);
@@ -901,13 +901,13 @@ class FormHelperTest extends CakeTestCase {
'input' => array('type' => 'hidden', 'name' => 'data[User][User]', 'value' => ''),
'select' => array('name' => 'data[User][User][]', 'id' => 'UserUser', 'multiple' => 'multiple'),
array('option' => array('value' => '')),
- array('!option'),
+ '!option',
array('option' => array('value' => 'value', 'selected' => 'selected')),
'good',
- array('!option'),
+ '!option',
array('option' => array('value' => 'other')),
'bad',
- array('!option'),
+ '!option',
'!select',
'!div'
);
@@ -917,162 +917,328 @@ class FormHelperTest extends CakeTestCase {
function testFormInputs() {
$this->Form->create('Contact');
$result = $this->Form->inputs('The Legend');
- $this->assertPattern('/