wiki.techinc.nl/tests/phpunit/integration/includes/Rest/Handler/Helper
C. Scott Ananian 8a650d5d48 ParsoidParser: ensure magic variable expansion uses pageLanguageOverride
This patch adds tests for the caching fix in
Ie76020dc4fa3545f827e1674051530b479f01f31, but these tests also revealed
that the recursive invocation of the legacy parser to expand magic
variables like {{PAGELANGUAGE}} wasn't using the pageLanguageOverride,
aka ParserOptions::getTargetLanguage().

The page language override is used when parsing new context which
doesn't currently exist in the database and therefore doesn't have a
page language set by its title (which doesn't yet exist).

Bug: T376783
Follows-Up: Ie76020dc4fa3545f827e1674051530b479f01f31
Change-Id: If6fe7cf00be6e78ef46181b17f01138383e95e46
2024-10-09 12:28:23 -04:00
..
HtmlInputTransformHelperTest.php Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats 2024-09-27 16:19:10 -04:00
HtmlMessageOutputHelperTest.php Deprecate Html*Helper::init() 2024-07-19 15:03:37 +00:00
HtmlOutputRendererHelperTest.php ParsoidParser: ensure magic variable expansion uses pageLanguageOverride 2024-10-09 12:28:23 -04:00
PageContentHelperTest.php REST: add restbase compat mode for some endpoints 2024-09-15 16:41:21 -05:00
PageRedirectHelperTest.php Introduce Modules into the REST framework 2024-05-08 16:12:30 +02:00
PageRestHelperFactoryTest.php Deprecate Html*Helper::init() 2024-07-19 15:03:37 +00:00
RevisionContentHelperTest.php REST: add restbase compat mode for some endpoints 2024-09-15 16:41:21 -05:00