wiki.techinc.nl/tests/phpunit/includes
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
..
actions Use localized success message after watching via action=watch 2020-09-17 16:28:58 +08:00
api Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
auth CheckBlocksSecondaryAuthenticationProviderTest: No need to set $wgUser 2020-09-15 21:20:56 +00:00
block Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
cache MCR import 2020-07-18 20:34:16 -04:00
changes Convert PageProps to a service 2020-08-12 21:21:53 +00:00
changetags Merge "me/contributions: filter by tag" 2020-07-06 06:01:52 +00:00
collation MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
config MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
content Remove all methods of MWTidy except for MWTidy::tidy() 2020-08-17 18:15:37 +00:00
context RequestContextTest: No need to set $wgUser 2020-09-13 23:18:17 +00:00
db MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
debug MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
deferred MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
diff Create fallback for undefined content models. 2020-07-22 19:59:09 +02:00
editpage MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
exception MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
externalstore MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
filebackend filebackend: Fix index error in SwiftFileBackend 2020-07-28 15:30:53 +02:00
filerepo Cleanup up excess commit() call in LocalRepoTest 2020-07-22 16:22:01 -07:00
GlobalFunctions MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
HookContainer Prevent service injection to LoadExtensionSchemaUpdates hook 2020-09-18 08:01:52 +10:00
htmlform MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
http Fix GuzzleHttpRequest request headers 2020-09-21 13:57:32 +10:00
import Check for unknown slot. 2020-07-20 10:39:28 -04:00
interwiki MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
jobqueue UserEditTracker: Do not try to initialize edit count in read-only mode 2020-08-06 00:50:41 +02:00
language MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
libs objectcache: Add QoS flags to HashBagOStuff 2020-09-17 01:25:29 +00:00
linkeddata Fix broken PHPDoc comments that don't start with /** 2020-07-23 16:09:41 +00:00
linker Replace wfGetDB with LoadBalancer in LinkCache service 2020-08-26 19:58:48 +02:00
logging Remove use of $wgUser from LogFormatterTest, unneeded 2020-09-14 20:26:13 +00:00
mail MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
media MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
Message MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
Navigation MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
objectcache MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
page Remove WikiPage::insertProtectNullRevision 2020-09-14 23:20:05 +00:00
pager
ParamValidator/TypeDef Remove stray fake time side effect in data provider 2020-08-07 11:41:43 +02:00
parser Use $msg2 in CoreParserFunctionsTest::testGender 2020-09-17 03:26:43 +01:00
password MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
Permissions Deprecate DatabaseBlock methods moved to DatabaseBlockStore 2020-09-13 22:17:27 +00:00
poolcounter MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
preferences MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
rcfeed MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
registration MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
resourceloader Merge "resourceloader: Add skin-based 'mediawiki.skin.variables.less' import" 2020-09-16 15:09:39 +00:00
Rest Handle CORS preflight request and prevent anon users from unsafe methods 2020-09-21 19:29:40 -04:00
Revision Remove deprecated title permissions functions 2020-08-26 21:21:11 +00:00
search search: Fix PrefixSearch totally ignoring input like "[[Foo]]" 2020-08-20 10:50:52 +02:00
session Support SameSite=None cookies 2020-07-07 02:18:45 +01:00
shell Fixes shell edge-cases in Windows 2020-08-26 15:04:07 +10:00
site MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
skins Require Skin name when passing options to Skin constructor 2020-09-18 15:57:03 +00:00
sparql Whitespace cleanup: Use tabs for indentation, avoid double spaces 2020-06-27 07:53:07 +00:00
specialpage Merge "Filter invalid namespace on Special:RecentChanges and friend" 2020-08-12 01:42:54 +00:00
specials Introduce backend class for blocking users 2020-09-22 14:14:01 +01:00
Storage Add mw-reverted change tag 2020-08-31 13:40:50 +00:00
title Remove $wgAllowImageMoving, deprecated 2020-09-14 01:21:50 +00:00
upload Manually redirect in UploadFromUrl 2020-09-14 21:36:36 +02:00
user UserTest: No need to set $wgUser 2020-09-15 21:22:33 +00:00
utils MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
watcheditem Manually redirect in UploadFromUrl 2020-09-14 21:36:36 +02:00
ActorMigrationTest.php
ActorMigrationTest.sql
AutoLoaderTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
AutopromoteTest.php Hard deprecate all methods in Autopromote class 2020-09-18 14:42:25 +00:00
CategoryTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
CommentStoreCommentTest.php
CommentStoreTest.php
CommentStoreTest.sql
ContentSecurityPolicyTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
DeprecatedGlobalTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
DiffHistoryBlobTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
EditPageTest.php EditPageTest: No need to set $wgUser 2020-09-15 21:26:07 +00:00
ExportTest.php Explicitly wrap some XML calls in libxml_disable_entity_loader() 2020-09-20 15:57:14 +00:00
ExtraParserTest.php Remove hard deprecated old SpecialPageFactory 2020-07-27 15:01:35 +00:00
FauxRequestTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
GitInfoTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
HooksTest.php HookContainer: fix clear() and scopedRegister(). 2020-09-08 21:07:59 +02:00
HtmlTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
LinkerTest.php Drop the LinkBegin and LinkEnd hooks, deprecated since 1.28 2020-07-29 11:25:49 +01:00
LinkFilterTest.php
ListToggleTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MagicWordFactoryTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MediaWikiServicesTest.php Merge "MediaWikiServicesTest: newMediaWikiServices never has parameters passed" 2020-07-08 07:27:35 +00:00
MediaWikiTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Use HookContainer to get the HookRunner in MergeHistory 2020-08-26 17:51:05 +00:00
MessageTest.php Replace all call_user_func(_array) in all tests 2020-06-06 18:41:20 +02:00
MovePageTest.php Add delete-redirect for deleting single-rev redirects during moves 2020-09-04 03:50:17 +00:00
MultiHttpClientTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
MWTimestampTest.php
OutputPageTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
PagePropsTest.php Replace tabs with spaces 2020-09-04 18:04:07 +02:00
PrefixSearchTest.php Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
ReadOnlyModeTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
RevisionDbTest.php Hard deprecate the rest of the Revision class 2020-07-02 09:02:02 +00:00
RevisionTest.php Hard deprecate the rest of the Revision class 2020-07-02 09:02:02 +00:00
RevisionTestModifyableContent.php Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
RevisionTestModifyableContentHandler.php
SampleTest.php
SiteStatsTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
StatusTest.php Add getMockMessage to MediaWikiTestCaseTrait 2020-05-20 21:52:11 +02:00
SystemBlockTest.php
TemplateCategoriesTest.php Pass a user to WikiPage::doDeleteArticleReal, use new signature 2020-03-19 00:54:29 +00:00
TestLocalisationCache.php
TestLogger.php Replace all call_user_func(_array) in all tests 2020-06-06 18:41:20 +02:00
TestUser.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
TestUserRegistry.php
TimeAdjustTest.php Remove unneeded ::setUp and ::tearDown methods that only call parent 2020-06-07 10:09:32 +00:00
TitleMethodsTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
TitleTest.php Remove deprecated title permissions functions 2020-08-26 21:21:11 +00:00
WebRequestTest.php Make WebRequest::getAcceptLang() return floats instead of strings 2020-07-14 19:10:24 +00:00
WikiMapTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
WikiReferenceTest.php
XmlTest.php Drop down lists: Do not use the value for 'other' as option group 2020-09-16 19:30:43 +00:00