mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing more tests related to changes on model validation
This commit is contained in:
parent
d788301ec9
commit
bb8c41d1e4
1 changed files with 1 additions and 1 deletions
|
@ -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/';
|
||||
|
|
Loading…
Add table
Reference in a new issue