MediaWiki
REL1_24
|
Unit tests for HTMLAutoCompleteSelectField. More...
Public Member Functions | |
testGetAttributes () | |
Verify that the autocomplete options are correctly encoded as the 'data-autocomplete' attribute of the field. | |
testMissingAutocompletions () | |
Verify that attempting to instantiate an HTMLAutoCompleteSelectField without providing any autocomplete options causes an exception to be thrown. | |
testOptionalSelectElement () | |
Test that the optional select dropdown is included or excluded based on the presence or absence of the 'options' parameter. | |
Public Attributes | |
$options |
Unit tests for HTMLAutoCompleteSelectField.
Definition at line 7 of file HTMLAutoCompleteSelectFieldTest.php.
Verify that the autocomplete options are correctly encoded as the 'data-autocomplete' attribute of the field.
HTMLAutoCompleteSelectField::getAttributes
Definition at line 33 of file HTMLAutoCompleteSelectFieldTest.php.
References array(), FormatJson\decode(), and options().
Verify that attempting to instantiate an HTMLAutoCompleteSelectField without providing any autocomplete options causes an exception to be thrown.
MWException called without any autocompletions
Definition at line 23 of file HTMLAutoCompleteSelectFieldTest.php.
References array().
HtmlAutoCompleteSelectFieldTest::$options |
array( 'Bulgaria' => 'BGR', 'Burkina Faso' => 'BFA', 'Burundi' => 'BDI', )
Definition at line 9 of file HTMLAutoCompleteSelectFieldTest.php.