Skip to content

Commit

Permalink
Fixing controller tests after validation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 22, 2011
1 parent d9d5651 commit 97b57e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/tests/Case/Controller/ControllerTest.php
Expand Up @@ -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);
}
Expand All @@ -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);
}

Expand Down

0 comments on commit 97b57e9

Please sign in to comment.