quick fix.
This commit is contained in:
parent
61056d37c4
commit
2acb54d679
@ -219,12 +219,14 @@ class Doctrine_Validator_TestCase extends Doctrine_UnitTestCase {
|
|||||||
} catch(Doctrine_Validator_Exception $e) {
|
} catch(Doctrine_Validator_Exception $e) {
|
||||||
$this->pass();
|
$this->pass();
|
||||||
$a = $e->getInvalidRecords();
|
$a = $e->getInvalidRecords();
|
||||||
|
//var_dump($a[1]->getErrorStack());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->assertTrue(is_array($a));
|
|
||||||
|
|
||||||
$emailStack = $a[array_search($user->Email, $a)]->errorStack();
|
$this->assertTrue(is_array($a));
|
||||||
$userStack = $a[array_search($user, $a)]->errorStack();
|
//var_dump(array_search($user, $a));
|
||||||
|
$emailStack = $user->Email->errorStack();
|
||||||
|
$userStack = $user->errorStack();
|
||||||
|
//var_dump($userStack);
|
||||||
|
|
||||||
$this->assertTrue(in_array('email', $emailStack['address']));
|
$this->assertTrue(in_array('email', $emailStack['address']));
|
||||||
$this->assertTrue(in_array('length', $userStack['name']));
|
$this->assertTrue(in_array('length', $userStack['name']));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user