wiki.techinc.nl/tests/phpunit/includes/parser
C. Scott Ananian 770d2bf040 [ParserOutput] Make 'enableSectionEditLinks' a ParserOption
This will allow the Translate extension to set this parser option
in the ArticleParserOptions hook, instead of mutating $options passed
to ParserOutput::getText() in the ParserOutputPostCacheTransform hook.

It ought to also help to handle the many places which call:

   ... = $parserOutput->getText( [
       'enableSectionEditLinks' => false,
   ] );

by allowing them to set the appropriate ParserOption instead
of passing arguments to ::getText().

Bug: T350626
Change-Id: I719c115194059060f7f888608417a194ac80cc92
2024-02-09 23:42:03 +00:00
..
CacheTimeTest.php Reorg: Move MWTimestamp to MediaWiki\Utils 2023-08-19 05:53:40 +02:00
CoreParserFunctionsTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ExtraParserTest.php Namespace includes/context 2024-02-08 11:07:01 -05:00
LinkHolderArrayIntegrationTest.php Merge "parser: Make all LinkHolderArray properties private" 2023-04-08 22:28:31 +00:00
MagicVariableTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
MagicWordFactoryTest.php Deprecate MagicWordFactory::getSubstIDs 2023-11-13 11:10:24 +01:00
PageBundleJsonTraitTest.php Use the instanceof and ::class features instead of strings 2024-02-02 14:50:15 +00:00
ParserCacheSerializationTestCases.php Rename ParserOutput::{get,set}Timestamp() to ::{get,set}RevisionTimestamp() 2024-02-07 21:22:06 -05:00
ParserCacheTest.php Rename ParserOutput::{get,set}Timestamp() to ::{get,set}RevisionTimestamp() 2024-02-07 21:22:06 -05:00
ParserMethodsTest.php tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
ParserOptionsTest.php [ParserOutput] Make 'enableSectionEditLinks' a ParserOption 2024-02-09 23:42:03 +00:00
ParserOutputTest.php [ParserOutput] Make 'enableSectionEditLinks' a ParserOption 2024-02-09 23:42:03 +00:00
ParserPreloadTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ParserTest.php Move user options related classes into its own namespace 2023-11-29 13:27:13 +01:00
PreprocessorTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
RevisionOutputCacheTest.php Add ParserOutput::{get,set}RenderId() and set render id in ContentRenderer 2024-02-07 21:22:06 -05:00
SanitizerTest.php tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
StripStateTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
TagHooksTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
validateParserCacheSerializationTestData.php Namespace ParserOutput 2023-12-14 14:57:34 -05:00