wiki.techinc.nl/tests/phpunit/includes/resourceloader
Timo Tijhof 09e1b91756 resourceloader: Move 'site' and 'user' logic to makeModuleResponse
* Keep this out of makeLoaderImplementScript() to keep it more generic
  and to simplify future refactoring.

* Remove now-broken test case that asserted that the output varies
  by global debug mode.

* Make the test responsible for wrapping in XmlJsCode. Previously
  this magically happened because the module name was "user" in the
  last test case.

* Make makeLoaderImplementScript protected. It's not used anywhere
  outside ResourceLoader and we should keep it that way.

Test plan:
* Verify output unchanged:
  - load.php?modules=user&only=scripts&user=Admin (raw code)
  - load.php?modules=user&user=Admin (implement with unwrapped string)
  - load.php?modules=jquery.client (implement with closure)

Change-Id: I527d01926fb6e4ce68c931695d830cdb9ceb608c
2016-09-15 18:32:07 -07:00
..
templates resourceloader: Add support for delivering templates 2014-10-29 19:31:16 +00:00
DerivativeResourceLoaderContextTest.php resourceloader: Add test coverage for DerivativeResourceLoaderContext 2016-08-29 14:41:46 -07:00
MessageBlobStoreTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderClientHtmlTest.php resourceloader: Move queue formatting out of OutputPage 2016-08-08 12:23:09 -07:00
ResourceLoaderContextTest.php resourceloader: Create unit tests for ResourceLoaderContext 2016-08-29 16:47:15 -07:00
ResourceLoaderFileModuleTest.php Avoid "Column md_module cannot be null" error in unit tests 2016-09-11 17:07:52 -07:00
ResourceLoaderImageModuleTest.php resourceloader: Create unit tests for ResourceLoaderContext 2016-08-29 16:47:15 -07:00
ResourceLoaderImageTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderModuleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderStartUpModuleTest.php resourceloader: Improve coverage in ResourceLoaderTest.php 2016-08-24 18:56:20 -07:00
ResourceLoaderTest.php resourceloader: Move 'site' and 'user' logic to makeModuleResponse 2016-09-15 18:32:07 -07:00
ResourceLoaderWikiModuleTest.php resourceloader: Fix WikiModule preload to support localised titles 2016-09-14 14:54:01 -07:00