From d788301ec9fcd95f8a031222c27055c39722a5a6 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Thu, 21 Apr 2011 19:01:15 -0430 Subject: [PATCH] Fixing failing tests due to recent changes in model validation --- lib/Cake/tests/Case/Model/BehaviorCollectionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php b/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php index 6724c2784..907b127c5 100644 --- a/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php +++ b/lib/Cake/tests/Case/Model/BehaviorCollectionTest.php @@ -990,11 +990,11 @@ class BehaviorCollectionTest extends CakeTestCase { $Apple->Behaviors->attach('Test', array('validate' => 'on')); $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')); $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->validates();