MediaWiki
REL1_22
|
Unit tests for the HTMLCheckMatrix form field. More...
Public Member Functions | |
testInstantiationWithMinimumRequiredParameters () | |
testPlainInstantiation () | |
testValidateAcceptsPartialTagList () | |
testValidateAllowsOnlyKnownTags () | |
testValidateCallsUserDefinedValidationCallback () | |
testValidateRequiresArrayInput () | |
testValuesForcedOffRemainOff () | |
testValuesForcedOnRemainOn () | |
This form object actually has no visibility into what happens later on, but essentially if the data submitted by the user passes validate the following is run: foreach ( $field->filterDataForSubmit( $data ) as $k => $v ) { $user->setOption( $k, $v ); }. | |
Protected Member Functions | |
validate (HTMLFormField $field, $submitted) | |
Static Private Attributes | |
static | $defaultOptions |
Unit tests for the HTMLCheckMatrix form field.
Definition at line 6 of file HTMLCheckMatrixTest.php.
Definition at line 24 of file HTMLCheckMatrixTest.php.
References $defaultOptions, and $form.
Definition at line 13 of file HTMLCheckMatrixTest.php.
Definition at line 55 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and validate().
Definition at line 50 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and validate().
Definition at line 29 of file HTMLCheckMatrixTest.php.
References MediaWikiTestCase\$called, $defaultOptions, array(), and validate().
Definition at line 41 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and validate().
Definition at line 82 of file HTMLCheckMatrixTest.php.
References $defaultOptions, and array().
This form object actually has no visibility into what happens later on, but essentially if the data submitted by the user passes validate the following is run: foreach ( $field->filterDataForSubmit( $data ) as $k => $v ) { $user->setOption( $k, $v ); }.
Definition at line 69 of file HTMLCheckMatrixTest.php.
References $defaultOptions, and array().
HtmlCheckMatrixTest::validate | ( | HTMLFormField $ | field, |
$ | submitted | ||
) | [protected] |
Definition at line 96 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and HTMLFormField\validate().
Referenced by testValidateAcceptsPartialTagList(), testValidateAllowsOnlyKnownTags(), testValidateCallsUserDefinedValidationCallback(), and testValidateRequiresArrayInput().
HtmlCheckMatrixTest::$defaultOptions [static, private] |
Definition at line 7 of file HTMLCheckMatrixTest.php.