mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Make sure testRequiredAllowEmpty() tests 2 different usages for required rule
This commit is contained in:
parent
290113fac0
commit
d1563d520f
@ -1268,8 +1268,8 @@ class ValidateTest extends BaseTestCase
|
||||
$this->assertFalse($v1->validate());
|
||||
|
||||
$v2= new Validator($data);
|
||||
$v2->rule('required', array('empty_text', 'null_value', 'in_array.empty_text'));
|
||||
$this->assertFalse($v2->validate());
|
||||
$v2->rule('required', array('empty_text', 'null_value', 'in_array.empty_text'), true);
|
||||
$this->assertTrue($v2->validate());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user