mediawiki-extensions-Cite/tests/phpunit
Timo Tijhof ce27a400e1 CiteHooks: Remove wgResourceModules check (redundant with isModuleRegistered)
The isModuleRegistered() method was introduced a few years ago,
when the load order in ResourceLoader was undergoing a change.

It used to be that hooks like were run first to register modules, and then
wgResourceModules was registered afterwards. This was reversed to disallow
mutating the config at run-time from foreign modules and to allow better
caching and error detection.

It's been several years since then, so this redundant check is no longer
needed. ServiceWiring.php in MW core for ResourceLoader always processes
config and extension.json first before this hook is called.

Bug: T247265
Change-Id: I466f1fa70b8f0e9fe5e8e8df90bb0001b3329b87
2020-03-10 16:18:46 +00:00
..
unit CiteHooks: Remove wgResourceModules check (redundant with isModuleRegistered) 2020-03-10 16:18:46 +00:00
CiteCSSFileModuleTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteDbTest.php Fix PHPUnit 8 warning 2020-01-20 10:33:56 +00:00
CiteHooksTest.php Remove ApiQueryReferences support 2019-11-28 11:08:46 +01:00
CiteIntegrationTest.php Replace ReferenceStack mocks with actual instances 2020-01-20 16:31:48 +01:00
ReferenceMessageLocalizerTest.php Remove single use classes from the use section 2019-12-17 14:57:55 +01:00