Fixing more tests related to changes on model validation

This commit is contained in:
Jose Lorenzo Rodriguez 2011-04-21 19:12:16 -04:30
parent d788301ec9
commit bb8c41d1e4

View file

@ -670,7 +670,7 @@ class TranslateBehaviorTest extends CakeTestCase {
));
$TestModel->create();
$this->assertFalse($TestModel->save($data));
$this->assertEqual($TestModel->validationErrors['title'], 'This field cannot be left blank');
$this->assertEqual($TestModel->validationErrors['title'], array('This field cannot be left blank'));
$TestModel->locale = 'eng';
$TestModel->validate['title'] = '/Only this title/';