wiki.techinc.nl/tests/phpunit/includes/resourceloader
Timo Tijhof 870d3a6532 resourceloader: Simplify load.mock.php by removing includes dependency
It previously depended on Xml.php for Xml::encodeJsCall, which
in turn depends on FormatJson. Other Xml.php methods also depend
on Sanitizer, but that was carefully not triggered.

Avoid both of these by simply constructing the string inline,
and using json_encode() directly for the one variable parameter.

Also, fix the names of one of the ResourceLoaderTest cases for
dotless module names. It claims to have been added to cover a
regression fixed in r88706, but that commit seems rather unrelated.
A bit of searching revealed as the relevant commit instead.

Bug: T188076
Change-Id: I04851d0355227f3a6b79b8d41a51d4beadce0e80
2018-03-06 15:59:13 -08:00
..
templates
DerivativeResourceLoaderContextTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
MessageBlobStoreTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ResourceLoaderClientHtmlTest.php resourceloader: Add test for non-empty user module in scripts-only queue 2018-03-05 23:37:31 +00:00
ResourceLoaderContextTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ResourceLoaderFileModuleTest.php resourceloader: Include lessVars in FileModule definition summary 2017-07-27 03:02:09 +00:00
ResourceLoaderImageModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderImageTest.php resourceloader: Clarify operator precedence 2017-10-06 23:14:02 +00:00
ResourceLoaderModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderOOUIImageModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderSkinModuleTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ResourceLoaderStartUpModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ResourceLoaderTest.php resourceloader: Simplify load.mock.php by removing includes dependency 2018-03-06 15:59:13 -08:00
ResourceLoaderWikiModuleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00