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();