PortableInfobox/tests/phpunit
alex4401 eb55d89e77
Output any image candidate markers generated by PageImages (#105)
* Output any image candidate markers generated by PageImages

wikimedia/mediawiki-extensions-PageImages#768464d changed how lead images are identified within PageImages, and since then an HTML comment in the form of `MW-PAGEIMAGES-CANDIDATE-$ID` is output by`doParserModifyImageHTML`, where the ID is an index in the extension output data's list of image metadata. These comments should find a way into the ParserOutput as the extension looks for those comments in a chosen document fragment when identifying qualifying candidates out of all images gathered through `onParserModifyImageHTML`.

This change does not affect compatibility with older PageImages (only the "new" hook's being called already).

* Default htmlAfter to null and update tests to expect it

Follow-up to my previous PageImages commit.
2023-07-24 11:13:33 -06:00
..
helpers Add use statements (#64) 2022-03-11 13:35:51 -07:00
nodes Output any image candidate markers generated by PageImages (#105) 2023-07-24 11:13:33 -06:00
InfoboxParamsValidatorTest.php Add use statements (#64) 2022-03-11 13:35:51 -07:00
MediaWikiParserTest.php Add use statements (#64) 2022-03-11 13:35:51 -07:00
PortableInfoboxDataServiceTest.php Fix all failed experimental CIs (#74) 2022-04-14 09:54:03 -06:00
PortableInfoboxParserTagControllerTest.php Fix tests (#41) 2021-12-15 15:01:13 -07:00
PortableInfoboxRenderServiceTest.php Add use statements (#64) 2022-03-11 13:35:51 -07:00
PortableInfoboxTemplateEngineTest.php Add use statements (#64) 2022-03-11 13:35:51 -07:00
QueryAllInfoboxesTest.php Actually run QueryAllInfoboxesTest (#43) 2021-12-16 14:13:54 -07:00
XmlParserTest.php Add use statements (#64) 2022-03-11 13:35:51 -07:00