MediaWiki  master
HTMLCheckMatrixTest Class Reference

HTMLCheckMatrix. More...

Inheritance diagram for HTMLCheckMatrixTest:
Collaboration diagram for HTMLCheckMatrixTest:

Public Member Functions

 testInstantiationWithMinimumRequiredParameters ()
 
static 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 ); }. More...
 

Protected Member Functions

 validate (HTMLFormField $field, $submitted)
 
- Protected Member Functions inherited from MediaWikiUnitTestCase
 setUp ()
 
 tearDown ()
 

Static Private Attributes

static $defaultOptions
 

Detailed Description

HTMLCheckMatrix.

Definition at line 6 of file HTMLCheckMatrixTest.php.

Member Function Documentation

◆ testInstantiationWithMinimumRequiredParameters()

HTMLCheckMatrixTest::testInstantiationWithMinimumRequiredParameters ( )

Definition at line 24 of file HTMLCheckMatrixTest.php.

◆ testPlainInstantiation()

static HTMLCheckMatrixTest::testPlainInstantiation ( )

Definition at line 13 of file HTMLCheckMatrixTest.php.

References $e, and class.

◆ testValidateAcceptsPartialTagList()

HTMLCheckMatrixTest::testValidateAcceptsPartialTagList ( )

Definition at line 56 of file HTMLCheckMatrixTest.php.

References validate().

◆ testValidateAllowsOnlyKnownTags()

HTMLCheckMatrixTest::testValidateAllowsOnlyKnownTags ( )

Definition at line 51 of file HTMLCheckMatrixTest.php.

References class, and validate().

◆ testValidateCallsUserDefinedValidationCallback()

HTMLCheckMatrixTest::testValidateCallsUserDefinedValidationCallback ( )

Definition at line 29 of file HTMLCheckMatrixTest.php.

References use, and validate().

◆ testValidateRequiresArrayInput()

HTMLCheckMatrixTest::testValidateRequiresArrayInput ( )

Definition at line 42 of file HTMLCheckMatrixTest.php.

References null, and validate().

◆ testValuesForcedOffRemainOff()

HTMLCheckMatrixTest::testValuesForcedOffRemainOff ( )

Definition at line 83 of file HTMLCheckMatrixTest.php.

◆ testValuesForcedOnRemainOn()

HTMLCheckMatrixTest::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 ); }.

Definition at line 70 of file HTMLCheckMatrixTest.php.

◆ validate()

HTMLCheckMatrixTest::validate ( HTMLFormField  $field,
  $submitted 
)
protected

Member Data Documentation

◆ $defaultOptions

HTMLCheckMatrixTest::$defaultOptions
staticprivate
Initial value:
= [
'rows' => [ 'r1', 'r2' ]

Definition at line 7 of file HTMLCheckMatrixTest.php.


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