Merge pull request #230 from vlucas/fixTest

Make testRequiredAllowEmpty() test 2 different usages
This commit is contained in:
Willem Wollebrants 2017-12-02 21:56:17 +01:00 committed by GitHub
commit 42637ed954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
}
}