aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query
diff options
context:
space:
mode:
authorTaavi Väänänen <hi@taavi.wtf>2024-04-22 13:32:09 +0300
committerTaavi Väänänen <hi@taavi.wtf>2024-04-22 18:26:14 +0300
commited7e787f32e1567c620b3fa9aa57c5e263014550 (patch)
treeb9c84cc42a9781cc3d79f7df8bae4104fd531829 /tests/phpunit/includes/api/query
parent17e5741710545e5e6234cf7749fc567185d545f1 (diff)
downloadmediawikicore-ed7e787f32e1567c620b3fa9aa57c5e263014550.tar.gz
mediawikicore-ed7e787f32e1567c620b3fa9aa57c5e263014550.zip
Ignore/fix MediaWiki.Commenting.PropertyDocumentation.WrongStyle
Fix the real issues found by this sniff, and convert the remaining false positive ignores to per-line ignores so that any more real issues won't be added. Change-Id: I18e75d59df327e2d93a3a487c115e92b9f268722
Diffstat (limited to 'tests/phpunit/includes/api/query')
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryBasicTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php1
3 files changed, 4 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryBasicTest.php b/tests/phpunit/includes/api/query/ApiQueryBasicTest.php
index c68b75df70d6..104a5d92a5b7 100644
--- a/tests/phpunit/includes/api/query/ApiQueryBasicTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryBasicTest.php
@@ -132,7 +132,7 @@ class ApiQueryBasicTest extends ApiQueryTestBase {
] ]
];
- // Although this appears to have no use it is used by testLists()
+ /** Although this appears to have no use it is used by testLists() */
private static $allcategories = [
[ 'list' => 'allcategories', 'acprefix' => 'AQBT-' ],
[ 'allcategories' => [
diff --git a/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php
index 09192105ea39..b9f06d42a0d9 100644
--- a/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php
@@ -25,6 +25,8 @@ class ApiQueryWatchlistIntegrationTest extends ApiTestCase {
use TempUserTestTrait;
// TODO: This test should use Authority, but can't due to User::saveSettings
+
+ // phpcs:ignore MediaWiki.Commenting.PropertyDocumentation.WrongStyle
private $loggedInUser;
private $notLoggedInUser;
diff --git a/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php
index 7e28ce422526..fb656e8614db 100644
--- a/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php
@@ -16,6 +16,7 @@ use WatchedItemQueryService;
*/
class ApiQueryWatchlistRawIntegrationTest extends ApiTestCase {
// TODO: This test should use Authority, but can't due to User::saveSettings
+ // phpcs:ignore MediaWiki.Commenting.PropertyDocumentation.WrongStyle
private $loggedInUser;
private $notLoggedInUser;