HomePhabricator

Set empty hook handlers on ExtensionRegistry for testing

Description

Set empty hook handlers on ExtensionRegistry for testing

wgHooks is not enough when extension does not use globals, but
extension.json

  1. FileImporter\Tests\Services\ImporterTest::testImport

HTTP request blocked:
https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1
by BaseBlacklist::getHttpText. Use MockHttpTrait.

Bug: T265628
Change-Id: If7930a196272f782a6541fb0bc301e04e2d56f38

Details