wiki.techinc.nl/tests/phpunit/includes/resourceloader
Timo Tijhof dbe592df6d resourceloader: Fix WikiModule preload to support localised titles
Follows-up 6f8dc27ca2 and dbd11e04aa. You'd expect a bug in preloading
to fallback to fetching it on-demand but due to a title format mismatch
the preload method did use the same title format for the cache key, but
not the same title format for discovering the results. As such, it set
the right cache key to an empty array.

* Make relevant methods testable and mockable.
* Add regression test.
* Change call to array_interect_key to use the same format as
  fetchTitleInfo(): Normalised title keys from Title::getPrefixedText.
  Previously, the intersect used the declared titles from getPages() which
  are not localised - causing an empty array to be returned from the
  intersect on wikis where the namespace name is localised.

Bug: T145673
Change-Id: Ibe788157724d73c727b9e2127b6828db32ca9420
2016-09-14 14:54:01 -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: Create unit tests for ResourceLoaderContext 2016-08-29 16:47:15 -07:00
ResourceLoaderWikiModuleTest.php resourceloader: Fix WikiModule preload to support localised titles 2016-09-14 14:54:01 -07:00