Skip to content

Commit

Permalink
Add doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 7, 2013
1 parent c621985 commit 35ca406
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Cake/Test/Case/Model/ModelValidationTest.php
Expand Up @@ -612,6 +612,12 @@ public function testValidatesWithAssociations() {
$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(
Expand Down Expand Up @@ -2421,4 +2427,4 @@ public function beforeValidate(Model $Model, $options = array()) {
}
}

}
}

0 comments on commit 35ca406

Please sign in to comment.