mediawiki-extensions-AbuseF.../includes
Daimona Eaytoy c8c66b55bc Two minor fixes to make code testable
Trying to write unit tests, there are some things in the code that make
it not well testable. Here, two of them are corrected:
1 - Use class constants instead of static variables inside a non-static
method. Otherwise such variables won't be reset between tests. The
change is made so that there'll be less impact on blame.
2 - Set af_enabled to true even in af_deleted is true as well. For three
reasons: the first is that we already perform validation for this, so no
need to secretly change the option to whatever we think would make
sense. Second, this redundant validation makes some tests fail. Third:
this way, if the user selects both enabled and deleted, when the warning
is shown he'll indeed see that both checkboxes are selected. Before, he
would only see wpFilterEnabled as selected.

Change-Id: Ib7a0335fa7fb3b8a21765438a720205656c1ea09
2018-07-05 00:07:46 +02:00
..
api Allow users with abusefilter-view-private to use testing interface 2018-06-24 14:10:38 +00:00
pagers Show throttled filters in Special:AbuseFilter 2018-06-08 21:54:58 +02:00
parser Copy levels documentation on AbuseFilterParser 2018-06-30 20:35:49 +02:00
special Add min and max date selectors to AbuseLog 2018-06-29 11:52:14 +02:00
Views Two minor fixes to make code testable 2018-07-05 00:07:46 +02:00
AbuseFilter.php Abstract methods in ViewEdit related to filter saving 2018-07-02 20:27:05 +02:00
AbuseFilterChangesList.php Add phan configuration 2018-04-30 08:32:58 +00:00
AbuseFilterHooks.php Merge "Remove all not needed & from hook handler signatures" 2018-06-09 09:22:29 +00:00
AbuseFilterModifyLogFormatter.php Actually mark abusefilter creations as such in the AbuseFilter log 2018-01-12 17:03:13 +00:00
AbuseFilterPreAuthenticationProvider.php Fix coding conventions exclusion rules 2018-04-20 08:40:18 +00:00
AbuseFilterVariableHolder.php Get rid of call_user_func_array() 2018-06-07 23:01:27 -07:00
AbuseLogHitFormatter.php Cleanup, added spaces 2017-10-19 09:40:22 +02:00
AFComputedVariable.php Rename lists to arrays 2018-06-26 14:42:23 +02:00
TableDiffFormatterFullContext.php Fix coding conventions exclusion rules 2018-04-20 08:40:18 +00:00