Unit test 'CFileValidatorTest' has been updated to expose issue #2821

This commit is contained in:
Paul Klimov
2013-08-29 11:28:46 +03:00
parent 84a37ef5d1
commit db6e6bc58c
2 changed files with 14 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ class ValidatorTestModel extends CFormModel
public $username;
public $address;
public $uploaded_file;
public function rules()
{
return array(
@@ -35,6 +37,8 @@ class ValidatorTestModel extends CFormModel
array('string1', 'in', 'allowEmpty' => false, 'range' => array(0,1,7,13), 'on' => 'CRangeValidatorTest'),
array('string2', 'in', 'allowEmpty' => false, 'range' => array('',1,7,13), 'on' => 'CRangeValidatorTest'),
array('uploaded_file', 'file', 'on' => 'CFileValidatorTest'),
);
}
}