mediawiki-extensions-AbuseF.../tests/phpunit/unit
dreamyjazz 627a73ec5e Ensure IP, XFF and UA are valid for abuse filter user actions in CheckUser
Change the IP to 127.0.0.1 (to indicate an internal IP), and blank
the XFF and UA when the performer of an action being logged by
CheckUser is the abuse filter user. Actions performed by the abuse
filter user can only be initated by the software, and as such should
not use the request's IP, XFF and UA. Also test the newly added
code.

Bug: T44345
Depends-On: I28acaaebd2d0067b700da0930e7b7ba924fa5c1c
Change-Id: Idd77545af94f9f9930d9ff38ab6423a72e680df9
2022-11-11 23:19:22 +00:00
..
ChangeTags Inline/simplify smaller pieces of duplicate/complex PHP code 2022-06-03 21:04:38 +02:00
Consequences Use LinkTarget in ConsequencesExecutor 2022-06-28 19:46:50 +02:00
Filter Use static closures where safe to use 2021-04-30 20:55:35 +02:00
Hooks Ensure IP, XFF and UA are valid for abuse filter user actions in CheckUser 2022-11-11 23:19:22 +00:00
Parser Merge "Add support for regex string replacements." 2022-05-31 14:54:33 +00:00
Special Use updated ObjectFactory namespace 2022-03-09 22:17:07 +00:00
VariableGenerator Use UserIdentity in VariableGenerator::addEditVars 2022-07-29 12:55:52 +02:00
Variables Clean up line indent with mixed tabs and whitespaces 2022-07-31 16:34:07 +02:00
Watcher build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterPermissionManagerTest.php Migrate AbuseFilterPermissionManager to authority 2022-07-01 06:58:17 +00:00
AbuseLoggerFactoryTest.php Introduce an EditRevUpdater service 2021-01-27 00:24:39 +01:00
ActionSpecifierTest.php Introduce ActionSpecifier 2022-02-18 11:30:56 +00:00
BlockAutopromoteStoreTest.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
CentralDBManagerTest.php tests: Use DBConnRef, not IDatabase, as retval of getConnectionRef 2021-08-31 21:45:10 +02:00
EditBoxBuilderFactoryTest.php Convert remaining permissions checks to use Authority 2022-07-02 14:49:47 +02:00
EditRevUpdaterTest.php tests: Mock WikiPage in unit test 2022-06-24 22:22:24 +02:00
EditStashCacheTest.php Clean up / simplify parser-related classes 2021-09-08 13:41:52 +02:00
EmergencyCacheTest.php Use independent stats for emergency disable 2021-02-26 18:10:49 +01:00
FilterCompareTest.php Use static closures where safe to use 2021-04-30 20:55:35 +02:00
FilterImporterTest.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterLookupTest.php tests: Use DBConnRef, not IDatabase, as retval of getConnectionRef 2021-08-31 21:45:10 +02:00
FilterProfilerTest.php FilterProfiler: use WRStats 2022-07-06 09:35:08 +10:00
FilterRunnerFactoryTest.php Rename ParserFactory -> RuleCheckerFactory 2021-09-08 21:59:34 +02:00
FilterRunnerTest.php Rename ParserFactory -> RuleCheckerFactory 2021-09-08 21:59:34 +02:00
FilterStoreTest.php Use independent stats for emergency disable 2021-02-26 18:10:49 +01:00
FilterValidatorTest.php Convert remaining permissions checks to use Authority 2022-07-02 14:49:47 +02:00
GlobalNameUtilsTest.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
KeywordsManagerTest.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
RunnerDataTest.php Refactor ParserStatus 2021-09-17 11:25:54 +00:00
SpecsFormatterTest.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
TextExtractorTest.php build: Updating dependencies 2021-07-21 18:51:18 +00:00