wiki.techinc.nl/tests/phpunit/includes/resourceloader
Timo Tijhof b7c70526a9 resourceloader: Add missing Module->setConfig() calls in tests and installer
There is a fallback in Module->getConfig() to the global services
container. This is not meant to be used in practice, but there were
two places where this was missing: WebInstallerOutput, and various
PHPUnit tests.

* Add missing setConfig() to WebInstallerOutput.

* Add missing setConfig() to various tests. Most tests were already
  doing this correctly and using the standard mock from
  ResourceLoaderTestCase. Upon switching the last few tests as well,
  I uncovered various errors due to the mock missing some settings
  that the tested code uses, so these have been added now to
  ResourceLoaderTestCase.

Bug: T277728
Change-Id: I44f16ec4e00423fb6f641e58fffc1d40e4571f01
2021-06-13 21:20:58 +00:00
..
templates
DerivativeResourceLoaderContextTest.php Remove unneeded uses of MediaWikiCoversValidator 2021-05-22 01:43:29 +00:00
MessageBlobStoreTest.php Replace PHPUnit ->returnValue() with ->willReturn() shortcut 2021-04-22 10:37:45 +02:00
ResourceLoaderClientHtmlTest.php Merge "resourceloader: Add internal handling for debug=2" 2021-02-16 19:54:10 +00:00
ResourceLoaderContextTest.php resourceloader: Add internal handling for debug=2 2021-01-29 01:09:35 +00:00
ResourceLoaderFileModuleTest.php resourceloader: Add missing Module->setConfig() calls in tests and installer 2021-06-13 21:20:58 +00:00
ResourceLoaderImageModuleTest.php Add missing @param and @return to documentation in tests 2021-01-22 19:57:25 +01:00
ResourceLoaderLessVarFileModuleTest.php resourceloader: Fail gracefully if a LESS message is not found 2021-01-07 15:41:02 -08:00
ResourceLoaderModuleTest.php resourceloader: Add missing Module->setConfig() calls in tests and installer 2021-06-13 21:20:58 +00:00
ResourceLoaderOOUIImageModuleTest.php
ResourceLoaderSkinModuleTest.php ResourceLoaderSkinModule: Deprecated feature keys should be mapped 2021-06-02 17:37:49 +00:00
ResourceLoaderStartUpModuleTest.php resourceloader: Add missing Module->setConfig() calls in tests and installer 2021-06-13 21:20:58 +00:00
ResourceLoaderTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
ResourceLoaderWikiModuleTest.php resourceloader: Add missing Module->setConfig() calls in tests and installer 2021-06-13 21:20:58 +00:00