wiki.techinc.nl/tests/phpunit/includes/api
Martin Urbanec a656d03597 Introduce backend class for blocking users
Rather than having to do DatabaseBlock calls directly,
and then ManualLogEntry calls to facilitate logging,
let's create a BlockUser service, capable of blocking users
and logging, optionally with permission checking.

This should make blocking users easier for developers,
for instance, AbuseFilter or CheckUser can easily
benefit from this commit.

Bug: T189073
Change-Id: Ifdced735b694b85116cb0e43dadbfa8e4cdb8cab
2020-09-22 14:14:01 +01:00
..
format MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
query MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
Validator WatchedItemStore: Enforce a maximum watchlist expiry duration 2020-05-22 00:15:23 -04:00
ApiBaseTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiBlockInfoTraitTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiBlockTest.php Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
ApiChangeContentModelTest.php
ApiCheckTokenTest.php
ApiClearHasMsgTest.php Use new TalkPageNotificationManager 2020-05-15 12:35:45 -04:00
ApiComparePagesTest.php Replace uses of Revision constants 2020-07-03 01:23:44 +00:00
ApiContinuationManagerTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiCSPReportTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiDeleteTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiDisabledTest.php
ApiEditPageTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiErrorFormatterTest.php
ApiLoginTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiLogoutTest.php ApiLogoutTest: Remove use of global $wgUser 2020-05-15 20:59:20 +00:00
ApiMainTest.php Introduce UserOptionsManager and DefaultOptionsManager 2020-04-28 15:42:43 -07:00
ApiMessageTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiModuleManagerTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiMoveTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiOpenSearchTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiOptionsTest.php
ApiPageSetTest.php PageUpdater: set DeprecatablePropertyArray to hard deprecate Revision 2020-06-30 15:59:57 +00:00
ApiParseTest.php Deprecate Skin::setupSkinUserCss 2020-08-09 02:09:08 +01:00
ApiProtectTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiPurgeTest.php
ApiQueryAllPagesTest.php
ApiQueryBlockInfoTraitTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiQueryBlocksTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiQueryDisabledTest.php
ApiQueryInfoTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiQueryLanguageinfoTest.php
ApiQueryPrefixSearchTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiQueryRecentChangesIntegrationTest.php Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
ApiQuerySearchTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiQuerySiteinfoTest.php Remove usages of Skin::getAllowedSkins. 2020-08-05 02:48:29 +01:00
ApiQueryWatchlistIntegrationTest.php Merge "ApiQueryWatchlist: set anon flag as false when relevant instead of omitting" 2020-08-07 19:56:49 +00:00
ApiQueryWatchlistRawIntegrationTest.php
ApiResultTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiRevisionDeleteTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiRollbackTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiSetNotificationTimestampIntegrationTest.php
ApiStashEditTest.php Merge "PHPUnit integration tests: fix handling of null user in editPage()" 2020-09-13 09:24:18 +00:00
ApiTestCase.php Remove hard deprecated ApiTestCase::doLogin 2020-07-27 14:35:14 +00:00
ApiTestContext.php
ApiTokensTest.php
ApiUnblockTest.php Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
ApiUndeleteTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiUploadTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiUploadTestCase.php
ApiUsageExceptionTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiUserrightsTest.php Remove use of $wgUser in ApiUserrightsTest 2020-09-13 23:33:21 +00:00
ApiWatchTest.php WatchedItemStore: Enforce a maximum watchlist expiry duration 2020-05-22 00:15:23 -04:00
generateRandomImages.php
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php
UserWrapper.php
words.txt