mediawiki-extensions-AbuseF.../tests/phpunit
Daimona Eaytoy a766e39ade Add unit tests for profiling
Yet another important part to have covered. While for normal edits it
already works, for stashed ones it doesn't. That's why we need the patch
for checkAllFilters. Since for stashed edits profiling stats are all
zeros, this may explain T201334.
Changed the timestamp variable to use wfTimestamp instead of time() so
that we can fake it inside unit tests.
In a subsequent patch we should add average runtime conditions to tests
(really tricky).

Bug: T201193
Depends-On: Ib17821240b25c972a187e6b5eae42c5ada6c65e7
Change-Id: I5ee7ba44a6cd82a5ddb24fb4127af04d96e647f4
2019-05-23 08:47:40 +00:00
..
AbuseFilterConsequencesTest.php Add unit tests for profiling 2019-05-23 08:47:40 +00:00
AbuseFilterParserTest.php Remove comments literally repeating what the code says 2019-05-15 16:04:32 +02:00
AbuseFilterSaveTest.php Add missing limits to explode() calls 2019-05-15 16:14:12 +02:00
AbuseFilterTest.php Add tests for storing and loading the variables dump 2019-04-12 08:03:33 +00:00
AbuseFilterTokenizerTest.php Remove comments literally repeating what the code says 2019-05-15 16:04:32 +02:00
AFPDataTest.php Remove comments literally repeating what the code says 2019-05-15 16:04:32 +02:00