mediawiki-extensions-Gadgets/tests/phpunit/integration
Timo Tijhof 1448500c2a Avoid global RequestContext in GadgetRep::validationWarnings()
This already returns safe Message objects, which allow Special:Gadgets
to localise it accordingly.

Avoid formatting the list ahead of time with a hardcoded user language,
and instead use Message::listParam() so that the caller controls
the Language object. This makes it safe to use in jobs, CLI, tests,
load.php and elsewhere instead of previously where RequestContext would
cause an exception or use something the caller doesn't control.

Bug: T298334
Change-Id: I77dd3c7fef86b4c8c41837bfb276b019f30baeb0
2024-01-09 21:05:18 +00:00
..
GadgetDefinitionContentHandlerTest.php Avoid persisting default gadget configs in definitions 2023-12-16 14:31:09 +05:30
GadgetDefinitionNamespaceRepoTest.php Specify all source pages in a single array in JSON definitions 2023-12-16 14:31:09 +05:30
GadgetHooksTest.php Use namespaced classes 2024-01-06 17:45:07 +01:00
GadgetLoadConditionsTest.php Use namespaced classes 2024-01-06 17:45:07 +01:00
GadgetRepoTest.php Avoid global RequestContext in GadgetRep::validationWarnings() 2024-01-09 21:05:18 +00:00
GadgetResourceLoaderModuleTest.php Merge "tests: Add test case to assert ES6 is valid by default" 2024-01-08 15:07:47 +00:00
MediaWikiGadgetsDefinitionRepoTest.php Use namespaced classes 2024-01-06 17:45:07 +01:00