mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-05 06:13:36 +00:00
Add doc block
This commit is contained in:
parent
c621985f69
commit
35ca40635e
1 changed files with 7 additions and 1 deletions
|
@ -612,6 +612,12 @@ class ModelValidationTest extends BaseModelTest {
|
|||
$this->assertEquals(0, $joinRecords, 'Records were saved on the join table. %s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that if a behavior modifies the model's whitelist validation gets triggered
|
||||
* properly for those fields.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testValidateWithFieldListAndBehavior() {
|
||||
$TestModel = new ValidationTest1();
|
||||
$TestModel->validate = array(
|
||||
|
@ -2421,4 +2427,4 @@ class ValidationRuleBehavior extends ModelBehavior {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue