mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing failing tests due to recent changes in model validation
This commit is contained in:
parent
e2591537ed
commit
d788301ec9
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue