mediawiki-extensions-AbuseF.../tests/phpunit
Daimona Eaytoy 6c8a29698b Add test traits for uploads and account creation
Ideally, this might live in MediaWikiIntegrationTestCase. For the
createaccount one, AuthManager should also provide a method to log the
creation, because currently we are forced to copypaste that code here.

 - Add the missing tests for 'upload' in RCVariableGenerator, and adjust
the existing ones (delete file afterwards, more tablesUsed, use the
right extension).

 - Exclude from the coverage report a couple of lines which should
theoretically be unreachable. Escalate logging to WARN level, where it's
more likely to be spotted.

 - Remove an unused method (RCVariableGenerator::newFromID). This denies
   the need to maintain and cover it. We also don't want this generator
   to act as a factory.

Overall, this change brings the coverage for RCVariableGenerator to 100%

Bug: T201193
Change-Id: I425c3d9f6800f74eb6e4eda483b90cfb3bbbcb51
2020-10-04 13:16:58 +00:00
..
unit Add tests for retrieving RC variables 2020-10-04 12:43:04 +00:00
AbuseFilterConsequencesTest.php Add test traits for uploads and account creation 2020-10-04 13:16:58 +00: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 Refactor AbuseFilterView instantiation 2020-10-04 13:15:04 +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