mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
1d64691014
commit
99b0ee21a8
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue