Fixing failing tests due to recent changes in model validation

This commit is contained in:
Jose Lorenzo Rodriguez 2011-04-21 19:01:15 -04:30
parent e2591537ed
commit d788301ec9

View file

@ -990,11 +990,11 @@ class BehaviorCollectionTest extends CakeTestCase {
$Apple->Behaviors->attach('Test', array('validate' => 'on')); $Apple->Behaviors->attach('Test', array('validate' => 'on'));
$this->assertIdentical($Apple->validates(), false); $this->assertIdentical($Apple->validates(), false);
$this->assertIdentical($Apple->validationErrors, array('name' => true)); $this->assertIdentical($Apple->validationErrors, array('name' => array(true)));
$Apple->Behaviors->attach('Test', array('validate' => 'stop')); $Apple->Behaviors->attach('Test', array('validate' => 'stop'));
$this->assertIdentical($Apple->validates(), false); $this->assertIdentical($Apple->validates(), false);
$this->assertIdentical($Apple->validationErrors, array('name' => true)); $this->assertIdentical($Apple->validationErrors, array('name' => array(true, true)));
$Apple->Behaviors->attach('Test', array('validate' => 'whitelist')); $Apple->Behaviors->attach('Test', array('validate' => 'whitelist'));
$Apple->validates(); $Apple->validates();