wiki.techinc.nl/tests/phpunit/includes/OutputTransform
Isabelle Hurbain-Palatin da6f716c41 Fix serialization errors in PageBundle extensiondata
When going through a ContentDOMTransformStage, we try to move the
PageBundle when transforming the document from and to DOM. In the
current version of this code, this adds DataParsoid, a non-serializable
class, to ExtensionData, which breaks on ParserCache storage in later
steps.
This patch is pretty hacky, but it transforms the PageBundle structure
back to a stdClass so that it can be re-serialized before cache
insertion. The added test fails without this patch.
Hopefully we'll get rid of these hacks when using a HTMLHolder later.

Bug: T365036
Change-Id: Icc74edd43ea5098faebc21a084b6d483d6ab99d1
2024-05-17 09:47:18 -04:00
..
Stages Merge "Localization output transform" 2024-05-06 19:47:43 +00:00
ContentDOMTransformStageTest.php Fix serialization errors in PageBundle extensiondata 2024-05-17 09:47:18 -04:00
DefaultOutputPipelineFactoryTest.php Move section edit links outside headings (new heading HTML) 2024-05-06 12:25:33 -04:00
DummyDOMTransformStage.php Fix serialization errors in PageBundle extensiondata 2024-05-17 09:47:18 -04:00
OutputTransformStageTestBase.php phpunit: Fix tests relying on implicit wgScript/wgArticlePath 2024-05-05 00:00:01 +00:00
TestUtils.php Move section edit links outside headings (new heading HTML) 2024-05-06 12:25:33 -04:00