adding failing test that proves #5225

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7520 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-08-27 08:53:44 +00:00
parent 7863669dab
commit 384c5a0624
2 changed files with 11 additions and 3 deletions

View file

@ -4223,7 +4223,7 @@ class ModelTest extends CakeTestCase {
$this->assertEqual($TestModel->invalidFields(), $expected);
}
/**
* Tests validation parameter order in custom validation methods
* Tests validation parameter fieldList in invalidFields
*
* @access public
* @return void

View file

@ -422,8 +422,16 @@ class SetTest extends CakeTestCase {
);
$expected = array(
$c[0], $c[0]['a']['I'], $c[1], $c[2], array('a' => $c[2]['a']['II']['a']), $c[2]['a']['II']['III']
array(
'a' => array(
'II' => array(
'a' => 3,
)
)
)
);
$r = Set::extract('/a/II[a=3]/..', $c);
$this->assertEqual($r, $expected);
$expected = array(1,2,3,4,5);
$r = Set::extract('/User/id', $a);