mediawiki-extensions-AbuseF.../tests/phpunit
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
..
integration Convert af_hidden into a bitmask 2024-05-28 00:59:08 -07:00
unit Convert af_hidden into a bitmask 2024-05-28 00:59:08 -07:00
AbuseFilterConsequencesTest.php Convert af_hidden into a bitmask 2024-05-28 00:59:08 -07:00
AbuseFilterCreateAccountTestTrait.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterFilterUserTest.php Don't attempt to steal or create the FilterUser in CheckUserHandler 2024-01-31 19:32:52 +00:00
AbuseFilterRowsAndFiltersTestTrait.php Convert af_hidden into a bitmask 2024-05-28 00:59:08 -07:00
AbuseFilterUploadTestTrait.php Replace array_merge in tests with the [ ... ] syntax 2024-04-11 14:01:25 +02:00
ConsequenceGetMessageTestTrait.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
DegroupTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
LazyVariableComputerDBTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
RCVariableGeneratorTest.php RCVariableGeneratorTest: Handle anonymous user test with temp accounts enabled 2024-05-23 09:41:05 +02:00
SchemaChangesHandlerTest.php Replace some deprecated functions 2024-05-04 21:32:04 +08:00