mediawiki-extensions-AbuseF.../tests/phpunit/integration
Matěj Suchánek 702d77e3ce Create real integration test for variables
For fixing bugs like T65632, T105325, or T264104, we will need
to update code in more than one place at once. To prevent
regressions, create an integration test which tests the whole
pipeline, from the request submission to variable evaluation.
Edits are simulated using action=edit API call because the hook
AbuseFilter uses is run from EditPage.

To increase confidence in test coverage, remove some annotations
from AbuseFilterConsequencesTest or make them less greedy.
Ideally, it would only test consequences.

This patch includes refactoring of AbuseFilterCreateAccountTestTrait
which now only inserts the user into the database if it really
should be created.
It also restores test coverage of some other classes.

Change-Id: I661f4e0e2bcac4770e499708fca4e4e153f31fed
2022-11-26 18:51:38 +01:00
..
Api Replace unnecessary use of User 2022-07-02 23:58:08 +00:00
ChangeTags Clean up test files 2022-03-20 17:40:49 +00:00
Maintenance tests: Improve tests for postgres 2022-07-09 21:40:27 +00:00
Parser More cleanup for parser-related classes 2021-09-10 12:50:20 +00:00
Special Migrate AbuseFilterPermissionManager to authority 2022-07-01 06:58:17 +00:00
AbuseFilterServicesTest.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
ActionVariablesIntegrationTest.php Create real integration test for variables 2022-11-26 18:51:38 +01:00
EchoNotifierTest.php EchoNotifierTest: Use namespaced Event class 2022-11-12 06:28:33 +00:00
FilterStoreTest.php tests: Improve tests for postgres 2022-07-09 21:40:27 +00:00
FilterValidatorTest.php Create real integration test for variables 2022-11-26 18:51:38 +01:00