MediaWiki
REL1_24
|
Unit tests for the HTMLCheckMatrix HTMLCheckMatrix. 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 HTMLCheckMatrix.
Definition at line 7 of file HTMLCheckMatrixTest.php.
Definition at line 25 of file HTMLCheckMatrixTest.php.
References $defaultOptions.
Definition at line 14 of file HTMLCheckMatrixTest.php.
Definition at line 57 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and validate().
Definition at line 52 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and validate().
Definition at line 30 of file HTMLCheckMatrixTest.php.
References MediaWikiTestCase\$called, $defaultOptions, array(), and validate().
Definition at line 43 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and validate().
Definition at line 84 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 71 of file HTMLCheckMatrixTest.php.
References $defaultOptions, and array().
HtmlCheckMatrixTest::validate | ( | HTMLFormField $ | field, |
$ | submitted | ||
) | [protected] |
Definition at line 98 of file HTMLCheckMatrixTest.php.
References $defaultOptions, array(), and HTMLFormField\validate().
Referenced by testValidateAcceptsPartialTagList(), testValidateAllowsOnlyKnownTags(), testValidateCallsUserDefinedValidationCallback(), and testValidateRequiresArrayInput().
HtmlCheckMatrixTest::$defaultOptions [static, private] |
Definition at line 8 of file HTMLCheckMatrixTest.php.