mediawiki-extensions-AbuseF.../tests/phpunit/integration
Dreamy Jazz 7ecc204050 Expand SearchFilters.php to search by consequence
Why:
* SearchFilters.php allows the caller to search by a regex that
  is applied to the pattern.
* This script can be expanded to allow callers to specify what
  consequence should be associated with the filters that are
  outputted.

What:
* Add a 'consequence' option to the SearchFilters.php maintenance
  script, which is applied through a LIKE query on the
  af_actions column.
** This can be specified with or without the pattern option.
** Instead of making pattern required, the script now requires
   that one of consequence or pattern is provided.
* Expand the tests for the script for this new code, along with
  using the new ::expectCallToFatalError method to be able to
  test previously untestable code.

Bug: T373148
Change-Id: I1b507d8f9dc1f4cf91ee4f83ccde745eb6d46d6d
2024-08-22 22:07:37 +01:00
..
Api Merge "Remove usage of writeapi userright" 2024-08-01 21:06:48 +00:00
ChangeTags Use StatusValue::getMessages() instead of deprecated methods 2024-05-28 21:04:59 +00:00
Hooks ConfirmEditHandlerTest: Loosen message check test 2024-07-10 08:20:18 +00:00
Maintenance Expand SearchFilters.php to search by consequence 2024-08-22 22:07:37 +01:00
Parser tests: Use LanguageFactory to create en language 2024-07-20 21:41:52 +02:00
Special Disallow protected variable access on AbuseFilterViewTestBatch 2024-07-10 05:31:03 -07:00
Watcher tests: Use IDatabase for mocking instead of DBConnRef 2024-05-02 22:32:05 +02:00
AbuseFilterExtensionJsonTest.php AbuseFilterExtensionJsonTest: Allow skipping other extension hooks 2024-07-28 20:08:30 +00:00
AbuseFilterServicesTest.php Add missing AbuseFilterServices::getHookRunner() 2023-06-14 17:35:43 +02:00
AbuseLoggerTest.php Add integration test to verify logs are saved in CheckUser 2024-03-01 16:11:33 +00:00
ActionVariablesIntegrationTest.php Use namespaced classes 2024-06-12 20:01:35 +02:00
EchoNotifierTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
FilteredActionsHandlerTest.php Use overrideConfigValues/overrideConfigValue instead of setMwGlobals 2024-07-30 15:04:40 +00:00
FilterRunnerTest.php tests: Widen @covers tags in phpunit tests 2024-04-17 01:44:40 +01:00
FilterStoreTest.php Miscellaneous minor fixes 2024-07-03 02:31:38 +02:00
FilterValidatorTest.php Merge "Allow variables to be restricted by user right" 2024-06-04 17:20:17 +00:00