Fixing tests so they expect validation errors of all available models to be defined in Form helper

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4888 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-04-27 07:44:47 +00:00
parent 1d64691014
commit 99b0ee21a8

View file

@ -302,6 +302,9 @@ class FormHelperTest extends CakeTestCase {
$this->assertPattern('/^<form\s+id="[^"]+"\s+method="post"\s+action="\/validate_users\/add\/"[^>]*>$/', $result);
$expected = array(
'OpenidUrl' => array(
'openid_not_registered' => 1
),
'ValidateUser' => array(
'email' => 1
),
@ -349,8 +352,10 @@ class FormHelperTest extends CakeTestCase {
$result = $this->Form->create('ValidateUser', array('type' => 'post', 'action' => 'add'));
$this->assertPattern('/^<form\s+id="[^"]+"\s+method="post"\s+action="\/validate_users\/add\/"[^>]*>$/', $result);
/*
$expected = array(
'OpenidUrl' => array(
'openid_not_registered' => 1
),
'ValidateUser' => array(
'email' => 1
),
@ -364,8 +369,7 @@ class FormHelperTest extends CakeTestCase {
);
$this->assertEqual($this->Form->validationErrors, $expected);
*/
unset($this->ValidateUser->ValidateProfile->ValidateItem);
unset($this->ValidateUser->ValidateProfile);
unset($this->ValidateUser);