mediawiki-extensions-AbuseF.../tests/phpunit/integration
Kosta Harlan 05da3118aa
Protected variable logs: fallback to accountname if user_name is not set
Why:

- For account creations and account autocreations, the user_name
  property is deliberately unset, to avoid displaying the IP address of
  an unregistered user. Instead, `accountname` is set with the newly
  created account name
- For logging that someone has seen a protected variable value, we need
  to record the username that was seen

What:

- Use `accountname` as a fallback in case `user_name` is not set, when
  logging protected variable access
- Update tests to cover this case.

Bug: T376885
Change-Id: I688a3529fac0ad8455977a0cfdb950f0105f550d
2024-10-21 21:15:51 +02:00
..
Api Protected variable logs: fallback to accountname if user_name is not set 2024-10-21 21:15:51 +02:00
ChangeTags Use StatusValue::getMessages() instead of deprecated methods 2024-05-28 21:04:59 +00:00
Hooks ConfirmEditHandlerTest: Loosen message check test 2024-07-10 08:20:18 +00:00
Maintenance Expand SearchFilters.php to search by consequence 2024-08-22 22:07:37 +01:00
Parser tests: Use LanguageFactory to create en language 2024-07-20 21:41:52 +02:00
Special Disallow protected variable access on AbuseFilterViewTestBatch 2024-07-10 05:31:03 -07:00
Watcher tests: Use IDatabase for mocking instead of DBConnRef 2024-05-02 22:32:05 +02:00
AbuseFilterExtensionJsonTest.php AbuseFilterExtensionJsonTest: Allow skipping other extension hooks 2024-07-28 20:08:30 +00:00
AbuseFilterServicesTest.php
AbuseLoggerTest.php Add integration test to verify logs are saved in CheckUser 2024-03-01 16:11:33 +00:00
ActionVariablesIntegrationTest.php Use namespaced classes 2024-06-12 20:01:35 +02:00
EchoNotifierTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
FilteredActionsHandlerTest.php Use overrideConfigValues/overrideConfigValue instead of setMwGlobals 2024-07-30 15:04:40 +00:00
FilterRunnerTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
FilterStoreTest.php Miscellaneous minor fixes 2024-07-03 02:31:38 +02:00
FilterValidatorTest.php Merge "Allow variables to be restricted by user right" 2024-06-04 17:20:17 +00:00
ProtectedVarsAccessLoggerTest.php Log specific views of protected variables 2024-10-02 00:53:34 -07:00