From 5bd311b1a2df13d24db81e79935518e0dd3dba63 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Wed, 9 Oct 2019 20:24:07 +0200 Subject: 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 --- tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php') 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, -- cgit v1.2.3