diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2019-10-09 20:24:07 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2019-10-10 21:55:37 +0200 |
commit | 5bd311b1a2df13d24db81e79935518e0dd3dba63 (patch) | |
tree | fa0b08a30517fdbbf333edd297815ee766e40f15 /tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php | |
parent | f949d6f6606239655daad16a8d57ce1a4e3211b5 (diff) | |
download | mediawikicore-5bd311b1a2df13d24db81e79935518e0dd3dba63.tar.gz mediawikicore-5bd311b1a2df13d24db81e79935518e0dd3dba63.zip |
Add public as visibility in tests folder
Add public, protected or private to function missing a visibility
Enable the tests folder for the phpcs sniff
Change-Id: Ibefce76ea9984c47e08c94889ea2eafca7565e2c
Diffstat (limited to 'tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php')
-rw-r--r-- | tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php index eaba22d7fb61..9e96e186d308 100644 --- a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php +++ b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php @@ -18,7 +18,7 @@ class HTMLAutoCompleteSelectFieldTest extends MediaWikiTestCase { * @expectedException MWException * @expectedExceptionMessage called without any autocompletions */ - function testMissingAutocompletions() { + public function testMissingAutocompletions() { new HTMLAutoCompleteSelectField( [ 'fieldname' => 'Test' ] ); } @@ -28,7 +28,7 @@ class HTMLAutoCompleteSelectFieldTest extends MediaWikiTestCase { * * @covers HTMLAutoCompleteSelectField::getAttributes */ - function testGetAttributes() { + public function testGetAttributes() { $field = new HTMLAutoCompleteSelectField( [ 'fieldname' => 'Test', 'autocomplete' => $this->options, @@ -45,7 +45,7 @@ class HTMLAutoCompleteSelectFieldTest extends MediaWikiTestCase { * Test that the optional select dropdown is included or excluded based on * the presence or absence of the 'options' parameter. */ - function testOptionalSelectElement() { + public function testOptionalSelectElement() { $params = [ 'fieldname' => 'Test', 'autocomplete-data' => $this->options, |