mediawiki-extensions-AbuseF.../tests/phpunit
Daimona Eaytoy 9bc885b6b3 Add a ChangeTagger class
The logic about action IDs and the persistent buffer is now encapsulated
inside a single service, which is a step towards getting rid of global
state in the AbuseFilter class, and reducing the responsibilities of the
Runner.

An important change made here is that we now require a LinkTarget rather
than a Title. This removes a dependency on the Title class (a monster
object), makes tests simpler, and denies the need to inject a
TitleFactory. This means living without some bits of context (e.g. we're
no longer using makeTitleSafe to ensure a valid title, and we have to
build a "prefixedtext" manually), but this shouldn't be a problem, given
that the titles are only used to create a cache key: invalid titles are
not a problem, and concatenating namespace + title should always be
sufficient.

Bug: T265370
Change-Id: Iff59cd3d889454a482a89c16691bfefcc5ec0a12
2020-10-21 13:19:30 +02:00
..
unit Add a ChangeTagger class 2020-10-21 13:19:30 +02:00
AbuseFilterConsequencesTest.php Add a ChangeTagger class 2020-10-21 13:19:30 +02:00
AbuseFilterCreateAccountTestTrait.php Add test traits for uploads and account creation 2020-10-04 13:16:58 +00:00
AbuseFilterDBTest.php Rewrite the VariableHolder code to translate deprecated variables 2020-09-29 15:06:14 +00:00
AbuseFilterParserEquivsetTest.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
AbuseFilterSaveTest.php Represent new filters with null instead of 'new' 2020-10-10 12:23:50 +02:00
AbuseFilterUploadTestTrait.php Add test traits for uploads and account creation 2020-10-04 13:16:58 +00:00
AbuseFilterVariableGeneratorDBTest.php Add test traits for uploads and account creation 2020-10-04 13:16:58 +00:00
UpdateVarDumpsTest.php updateVarDumps: avoid using services in the constructor 2020-10-03 23:23:37 +00:00