mediawiki-extensions-AbuseF.../tests/phpunit/integration
STran ca23e9f06b Convert af_hidden into a bitmask
Protected variables will cause the filter using them to become
protected as well. `af_hidden` can be used to track this flag,
as it is a TINYINT and can be converted into a bitmask with no
schema changes.

This is not a backwards-compatible change, as now all checks must
check the `hidden` flag specifically or otherwise will be cast to
true if any flag is set.

To support this change:
- "hidden" is considered a flag set in the `af_hidden`. This is a
  change in concept with no need for updates to the column values,
  as there is currently only one flag in the bitmask.
- `Flag`s store the bitmask as well as the state of single flags
  and can return either.
- Any checks against the `af_hidden` value no longer check a
  boolean value and instead now check the `hidden` flag value.

Bug: T363906
Change-Id: I358205cb1119cf1e4004892c37e36e0c0a864f37
2024-05-28 00:59:08 -07:00
..
Api tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
ChangeTags tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
Hooks Provide integration with ConfirmEdit to show CAPTCHA 2024-05-10 21:00:47 +02:00
Maintenance Convert af_hidden into a bitmask 2024-05-28 00:59:08 -07:00
Parser Mark protected stuff in classes with no subclasses as private 2023-06-23 12:28:06 +02:00
Special tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
Watcher tests: Use IDatabase for mocking instead of DBConnRef 2024-05-02 22:32:05 +02:00
AbuseFilterExtensionJsonTest.php Use HookHandlers for UserMerge hook 2023-08-16 09:44:30 +02:00
AbuseFilterServicesTest.php Add missing AbuseFilterServices::getHookRunner() 2023-06-14 17:35:43 +02:00
AbuseLoggerTest.php Add integration test to verify logs are saved in CheckUser 2024-03-01 16:11:33 +00:00
ActionVariablesIntegrationTest.php Clean up ActionVariablesIntegrationTest 2024-05-01 16:22:15 +02:00
EchoNotifierTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
FilteredActionsHandlerTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
FilterRunnerTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
FilterStoreTest.php Migrate to IDatabase::newInsertQueryBuilder/newDeleteQueryBuilder 2024-04-02 21:15:40 +02:00
FilterValidatorTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00