mediawiki-extensions-AbuseF.../tests/phpunit/unit
Daimona Eaytoy 416dcd9ba3 Simplify ViewEdit, round 2
- Add a helper method to output an unrecoverable error, comprising a
   button to go back to the filters list;
- Move the token check to attemptSave, so to make the conditionals
  easier to read, and group errors together
- Make buildFilterEditor take an HTML parameter for the error, so the
  caller can specify whether it's error or warning
- Move the check for non-existing filters out of buildFilterEditor
- Add a bunch of typehints
- Don't set af_throttled and af_hit_count in the empty row template, but
  set af_deleted (these are only used in buildFilterEditor)
- Make AbuseFilter::translateFromHistory consistently include the af_global
  property (previously it would only be set for global filters; this error
  was introduced when first implementing global filters)
- The only user-facing change is that, when trying to use a custom
  warning/disallow message on a global filter, this is now considered a
  non-fatal error, so we now show the editing interface (and not just an
  unrecoverable error).

The next step is resolving the @todo in buildFilterEditor about null
checks.

Change-Id: I9d217dcac3f4cc0b26e53eca735cc327d5efc76d
2020-10-23 13:00:43 +00:00
..
AbuseFilterChangeTaggerTest.php Inject ChangeTagsManager to ChangeTagger 2020-10-21 16:30:43 +02:00
AbuseFilterKeywordsManagerTest.php Add tests for retrieving RC variables 2020-10-04 12:43:04 +00:00
AbuseFilterParserTest.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
AbuseFilterParserTestCase.php Merge "Move some misplaced AbuseFilterParser entry points" 2020-09-29 13:51:17 +00:00
AbuseFilterTest.php Simplify ViewEdit, round 2 2020-10-23 13:00:43 +00:00
AbuseFilterTokenizerTest.php tests: Increase and rebalance code coverage 2020-02-07 18:32:17 +00:00
AbuseFilterVariableGeneratorTest.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
AbuseFilterVariableHolderTest.php Rewrite the VariableHolder code to translate deprecated variables 2020-09-29 15:06:14 +00:00
AFPDataTest.php Add new methods for checking DUNDEFINED recursively, use them 2020-04-19 13:58:14 +02:00
SpecialAbuseFilterTest.php Cleanup filter id handling on Special:AbuseFilter/history 2020-10-10 11:40:46 +00:00