8 'rows' => [
'r1',
'r2' ],
9 'columns' => [
'c1',
'c2' ],
10 'fieldname' =>
'test',
21 $this->fail(
'Expected MWException indicating missing parameters but none was thrown.' );
32 'validation-callback' =>
function () use ( &
$called ) {
60 $this->
assertTrue( $this->
validate( $field, [
'c1-r1',
'c1-r2',
'c2-r1',
'c2-r2' ] ) );
72 'force-options-on' => [
'c2-r1' ],
80 $this->
assertEquals( $expected, $field->filterDataForSubmit( [] ) );
85 'force-options-off' => [
'c1-r2',
'c2-r2' ],
94 $this->
assertEquals( $expected, $field->filterDataForSubmit( array_keys( $expected ) ) );
98 return $field->validate(
100 [ self::$defaultOptions[
'fieldname'] => $submitted ]
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
testValidateAllowsOnlyKnownTags()
validate(HTMLFormField $field, $submitted)
testValidateCallsUserDefinedValidationCallback()
testValidateRequiresArrayInput()
testValidateAcceptsPartialTagList()
testValuesForcedOffRemainOff()
testValuesForcedOnRemainOn()
This form object actually has no visibility into what happens later on, but essentially if the data s...
testInstantiationWithMinimumRequiredParameters()
A checkbox matrix Operates similarly to HTMLMultiSelectField, but instead of using an array of option...
returning false will NOT prevent logging $e