mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Disable remote loading during PHPUnit tests
Bug: T65015 Change-Id: I205c5e247f314f734178f6c745eaa507f736083a
This commit is contained in:
parent
c3c92b748f
commit
51941a42ec
|
@ -299,6 +299,11 @@ abstract class BaseBlacklist {
|
|||
return [];
|
||||
}
|
||||
|
||||
if ( defined( 'MW_PHPUNIT_TEST' ) ) {
|
||||
wfDebugLog( 'SpamBlacklist', 'remote loading disabled during PHPUnit test' );
|
||||
return [];
|
||||
}
|
||||
|
||||
$miss = false;
|
||||
$cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
|
||||
$regexes = $cache->getWithSetCallback(
|
||||
|
|
Loading…
Reference in a new issue