Otherwise earlier tests might have cached prefixes in the service and
cause these tests to fail.
Change-Id: Id0e6184aff8f9d7e8f32558e1de14faa0168cc1d
return false;
} );// hooks::register
+ // Reset the service in case any other tests already cached some prefixes.
+ MediaWikiServices::getInstance()->resetServiceForTesting( 'InterwikiLookup' );
+
return function () {
// Tear down
Hooks::clear( 'InterwikiLoadPrefix' );
+ MediaWikiServices::getInstance()->resetServiceForTesting( 'InterwikiLookup' );
};
}