mediawiki-extensions-Gadgets/tests/phpunit
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
..
integration Avoid global RequestContext in GadgetRep::validationWarnings() 2024-01-09 21:05:18 +00:00
unit Use namespaced classes 2024-01-06 17:45:07 +01:00
GadgetTestTrait.php Further expand test coverage 2023-12-09 09:29:15 +05:30