mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
7863669dab
commit
384c5a0624
2 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue