There are no unit tests in AbuseFilter at the moment. Even phpTest.php has to be called manually. There should be a test suite that simulates common uses.
Basic tests to implement:
[ ] Tests for all AFPUserVisibleException exceptions (https://gerrit.wikimedia.org/r/#/c/443210/)
[ ] Tests for filter validation (https://gerrit.wikimedia.org/r/#/c/443520/)
[ ] Tests for generic functions in AbuseFilter class (https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/AbuseFilter/+/444191/)
[x] Complete tests where filters are created, actions are executed and consequences must be taken. (https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/AbuseFilter/+/444442/)
--------------------------
**See Also**:
* {T30213}
**Examples of filters broken by updates**:
* {T52107}
* {T54053}
* {T73947} / {T76063}
* {T74329}
* {T100069}
* {T100249}