From 97b57e9249c575103fca3ee6d05f40013d622ef7 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Fri, 22 Apr 2011 17:16:38 -0430 Subject: [PATCH] Fixing controller tests after validation changes --- lib/Cake/tests/Case/Controller/ControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/tests/Case/Controller/ControllerTest.php b/lib/Cake/tests/Case/Controller/ControllerTest.php index 82ea88dbe0e..2a25a281bbf 100644 --- a/lib/Cake/tests/Case/Controller/ControllerTest.php +++ b/lib/Cake/tests/Case/Controller/ControllerTest.php @@ -1040,7 +1040,7 @@ function testValidateErrors() { $comment = new ControllerComment($request); $comment->set('someVar', 'data'); $result = $TestController->validateErrors($comment); - $expected = array('some_field' => 'error_message', 'some_field2' => 'error_message2'); + $expected = array('some_field' => array('error_message'), 'some_field2' => array('error_message2')); $this->assertIdentical($result, $expected); $this->assertEqual($TestController->validate($comment), 2); } @@ -1058,7 +1058,7 @@ function testValidateErrorsOnArbitraryModels() { $Post->set('title', ''); $result = $TestController->validateErrors($Post); - $expected = array('title' => 'This field cannot be left blank'); + $expected = array('title' => array('This field cannot be left blank')); $this->assertEqual($result, $expected); }