wiki.techinc.nl/tests/phpunit/includes/api
Derick Alangi ff0bd2c434 Widen @covers annotations in tests ApiQueryInfoTest
> We lose useful coverage and spend valuable time keeping these tags
> accurate through refactors (or worse, forget to do so).
>
> I've audited each test to confirm it is a general test of the
> subject class, where adding any called methods would be an accepted
> change, thus widening it is merely a no-op that clarifies intent
> and reduces maintenance. I am not disabling the "only track coverage
> of specified subject" benefits, nor am I claiming coverage in
> in classes outside the subject under test.
>
> Tracking tiny details per-method wastes time in keeping references
> in sync during refactors, time to realize (and fix) when people
> inevitably don't keep them in sync, time lost in finding uncovered
> code to write tests for only to realize it was already covered but
> not yet claimed, etc.

@note: Motivated by patches like these from Krinkle from time to time,
see: I133c7b707aab7ceb4f2ecd3be38bd4bd1b194143 for example.

Change-Id: Icff4b5a2e9ce2108c1653052624c76004048cc31
2023-09-03 00:24:40 +00:00
..
format Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
query Widen @covers annotations in tests ApiQueryInfoTest 2023-09-03 00:24:40 +00:00
Validator tests: Check more PARAM_HELP_MSG in ApiStructureTest 2023-08-06 10:37:20 +00:00
ApiBaseTest.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ApiBlockInfoTraitTest.php tests: Use namespaced Wikimedia\Rdbms\IDatabase 2023-08-20 15:18:57 +02:00
ApiBlockTest.php Reorg: Move MWTimestamp to MediaWiki\Utils 2023-08-19 05:53:40 +02:00
ApiChangeContentModelTest.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
ApiComparePagesTest.php api tests: Call editPage() with WikiPage when used for same page 2023-06-24 18:07:34 +00:00
ApiContinuationManagerTest.php
ApiCSPReportTest.php
ApiDeleteTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiDisabledTest.php
ApiEditPageTest.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ApiErrorFormatterTest.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ApiLoginTest.php Replace usages of ApiTestCase::$users 2023-07-25 12:12:58 +00:00
ApiLogoutTest.php
ApiMainTest.php rdbms: Drop old class aliases 2023-08-24 15:18:13 -04:00
ApiMessageTest.php
ApiMoveTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiOpenSearchTest.php API: Replace deprecated calls to wfExpandUrl with UrlUtils::expand 2023-06-22 16:49:01 -04:00
ApiOptionsTest.php
ApiPageSetTest.php Do not use UTPage directly in tests 2023-08-12 23:51:53 +02:00
ApiParseTest.php api tests: Call editPage() with WikiPage when used for same page 2023-06-24 18:07:34 +00:00
ApiProtectTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiPurgeTest.php Do not use UTPage directly in tests 2023-08-12 23:51:53 +02:00
ApiResultTest.php
ApiRevisionDeleteTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiRollbackTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiSetNotificationTimestampIntegrationTest.php Do not use UTPage directly in tests 2023-08-12 23:51:53 +02:00
ApiStashEditTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiTestCase.php phpunit: Avoid TestUser in non-database tests 2023-07-29 14:26:50 +00:00
ApiTestContext.php
ApiUnblockTest.php tests: api: Replace some static function with services 2023-07-29 11:58:54 +02:00
ApiUndeleteTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiUploadTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiUploadTestCase.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiUsageExceptionTest.php
ApiUserrightsTest.php api: Add watch option for userpage to action=userrights 2023-08-25 19:42:39 +00:00
ApiWatchTest.php Do not use UTPage directly in tests 2023-08-12 23:51:53 +02:00
generateRandomImages.php
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php