Add doc block

This commit is contained in:
euromark 2013-10-08 00:32:11 +02:00
parent c621985f69
commit 35ca40635e

View file

@ -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 {
}
}
}
}