mediawiki-extensions-AbuseF.../tests/phpunit/unit
Daimona Eaytoy 1bac110205 Remove dependency on $wgRestrictionTypes
This was used to dynamically generate *_restriction_* variables.
However, it had two big problems:
 - We only have i18n for 'create', 'move', 'edit', and 'upload' (the
 default value of the global); other restrictions would show missing
 messages in various pages.
 - We had to access the global state in various points.

This change also makes some code in AbuseFilterVariableHolder simpler,
and also allows us to make AbuseFilterTest a unit test.

Change-Id: I321ad6e07f8243200af67a581b6e485970efd3ce
2020-02-25 23:17:54 +00:00
..
AbuseFilterParserTest.php tests: Increase and rebalance code coverage 2020-02-07 18:32:17 +00:00
AbuseFilterParserTestCase.php CachingParser: ensure to catch errors inside short-circuited blocks 2019-09-13 21:13:15 +00:00
AbuseFilterTest.php Remove dependency on $wgRestrictionTypes 2020-02-25 23:17:54 +00:00
AbuseFilterTokenizerTest.php tests: Increase and rebalance code coverage 2020-02-07 18:32:17 +00:00
AbuseFilterVariableHolderTest.php Remove dependency on $wgRestrictionTypes 2020-02-25 23:17:54 +00:00
AFPDataTest.php tests: Increase and rebalance code coverage 2020-02-07 18:32:17 +00:00