mediawiki-extensions-AbuseF.../tests/phpunit
Daimona Eaytoy 55ba083b13 Introduce a KeywordsManager service
This will decouple a bit the huge and chaotic tangle of AF classes. Some
boilerplate code for AbuseFilter services is also added with this patch.

Note that this requires injecting a KeywordsManager in
AbuseFilterVariableHolder, or unit tests would fail. This is still
incomplete, and the Manager is only injected in tests, because
VariableHolder still has to be refactored.

The test for the UpdateVarDumps script had to be updated, because
serializing VHs in there was a bad choice. As pointed out in a comment,
the test is likely going to break again once we remove the BC code, but
I hope that we'll be able to remove the test at that point.

Change-Id: I12a656a310adb8c5f75cab63f6db9e121e109717
2020-09-28 23:03:52 +00:00
..
unit Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
AbuseFilterConsequencesTest.php Add tests for 'upload' action 2020-09-28 11:53:53 +00:00
AbuseFilterDBTest.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
AbuseFilterParserEquivsetTest.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
AbuseFilterSaveTest.php Give AbuseFilterSaveTest::testSaveFilter() a return value for selectRow 2020-09-24 18:25:26 +01:00
AbuseFilterVariableGeneratorDBTest.php tests: Create dedicated classes for VariableGenerators 2020-09-28 11:53:47 +00:00
UpdateVarDumpsTest.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00