Go to file
Amir Sarabadani 60cbc3b464 BlockedDomains: Use cleaner array building and add tests
Regarding array building: Instead of adding to array with
$array[] = 'foo' and then doing array_flip(), simply do
$array['foo'] = true;

Regarding tests: I originally wanted to create a unit test but I ended
up mocking so many things that it wasn't worth it and the config variable
is globaly which first we need to clean up after deployment is done.

Bug: T337431
Change-Id: Iac8dca7078668ee3441d19b6aafe499c1aa0d732
2023-06-12 17:46:55 +00:00
.phan UserRenameHandler: Use core RenameUser classes 2023-03-08 12:53:43 +02:00
db_patches Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
i18n Merge "Make edit summary of blocked domain changes use i18n" 2023-06-09 19:46:38 +00:00
includes BlockedDomains: Use cleaner array building and add tests 2023-06-12 17:46:55 +00:00
maintenance Fix MigrateActorsAF 2023-05-09 19:44:14 +02:00
modules Merge "abusefilter.css: Increase the default abusefilter editor width" 2023-03-15 14:00:30 +00:00
tests BlockedDomains: Use cleaner array building and add tests 2023-06-12 17:46:55 +00:00
.eslintrc.json build: Update linters 2022-03-17 22:19:08 +00:00
.gitignore Add config for Selenium and basic tests 2019-09-17 16:23:07 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:01:30 -07:00
.phpcs.xml Merge "Use FauxRequest::setUpload in AbuseFilterUploadTestTrait::doUpload" 2021-05-15 12:22:10 +00:00
.stylelintrc.json build: Bump devDependencies to latest 2018-02-10 21:00:53 +00:00
AbuseFilter.alias.php Introduce Special:BlockedExternalDomains 2023-05-30 20:48:42 +02:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 05:29:54 +00:00
composer.json build: Updating dependencies 2023-04-26 22:41:38 +00:00
COPYING
extension.json Add abusefilter-bypass-blocked-external-domains right 2023-06-08 22:06:19 +02:00
Gruntfile.js build: Update linters 2022-03-17 22:19:08 +00:00
package-lock.json build: Updating npm dependencies 2023-05-20 22:38:40 +00:00
package.json build: Updating npm dependencies 2023-05-20 22:38:40 +00:00