MediaWiki  REL1_22
HtmlCheckMatrixTest Class Reference

Unit tests for the HTMLCheckMatrix form field. More...

Inheritance diagram for HtmlCheckMatrixTest:
Collaboration diagram for HtmlCheckMatrixTest:

List of all members.

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

Detailed Description

Unit tests for the HTMLCheckMatrix form field.

Definition at line 6 of file HTMLCheckMatrixTest.php.


Member Function Documentation

Definition at line 13 of file HTMLCheckMatrixTest.php.

References $form, array(), and fail.

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().


Member Data Documentation

HtmlCheckMatrixTest::$defaultOptions [static, private]
Initial value:
 array(
        'rows' => array( 'r1', 'r2' ),
        'columns' => array( 'c1', 'c2' ),
        'fieldname' => 'test',
    )

Definition at line 7 of file HTMLCheckMatrixTest.php.


The documentation for this class was generated from the following file: