Go to the documentation of this file.
9 'rows' =>
array(
'r1',
'r2' ),
10 'columns' =>
array(
'c1',
'c2' ),
11 'fieldname' =>
'test',
18 $this->assertInstanceOf(
'HTMLFormFieldRequiredOptionsException',
$e );
22 $this->
fail(
'Expected MWException indicating missing parameters but none was thrown.' );
27 $this->assertTrue(
true );
33 'validation-callback' =>
function() use ( &
$called ) {
38 $this->assertEquals(
false, $this->
validate( $field,
array() ) );
44 $this->assertEquals(
false, $this->
validate( $field,
null ) );
45 $this->assertEquals(
false, $this->
validate( $field,
true ) );
46 $this->assertEquals(
false, $this->
validate( $field,
'abc' ) );
47 $this->assertEquals(
false, $this->
validate( $field,
new stdClass ) );
48 $this->assertEquals(
true, $this->
validate( $field,
array() ) );
53 $this->assertInternalType(
'string', $this->
validate( $field,
array(
'foo' ) ) );
59 $this->assertTrue( $this->
validate( $field,
array(
'c1-r1' ) ) );
60 $this->assertTrue( $this->
validate( $field,
array(
'c1-r1',
'c1-r2',
'c2-r1',
'c2-r2' ) ) );
72 'force-options-on' =>
array(
'c2-r1' ),
80 $this->assertEquals( $expected, $field->filterDataForSubmit(
array() ) );
85 'force-options-off' =>
array(
'c1-r2',
'c2-r2' ),
94 $this->assertEquals( $expected, $field->filterDataForSubmit( array_keys( $expected ) ) );
testValuesForcedOffRemainOff()
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
testValidateAcceptsPartialTagList()
return false to override stock group addition can be modified try getUserPermissionsErrors userCan checks are continued by internal code can override on output return false to not delete it return false to override the default password checks this Boolean value will be checked to determine if the password was valid return false to implement your own hashing method this String will be used as the hash which may be added to this hook is run right before returning the options to the caller which means it s potentially called dozens or hundreds of times You may want to cache the results of non trivial operations in your hook function for this reason & $defaultOptions
testInstantiationWithMinimumRequiredParameters()
as a message key or array as accepted by ApiBase::dieUsageMsg after processing request parameters Return false to let the request fail
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
testValidateAllowsOnlyKnownTags()
validate(HTMLFormField $field, $submitted)
testValidateRequiresArrayInput()
testValuesForcedOnRemainOn()
This form object actually has no visibility into what happens later on, but essentially if the data s...
testValidateCallsUserDefinedValidationCallback()
Unit tests for the HTMLCheckMatrix @covers HTMLCheckMatrix.
A checkbox matrix Operates similarly to HTMLMultiSelectField, but instead of using an array of option...