mediawiki-extensions-Cite/tests/phpunit/unit
Thiemo Kreuz a7c4e14f42 Remove obsolete ParserBeforeTidy hook handler
I was able to track this code down to I093d85d from 2012, which was done
right after the ParserAfterParse hook was introduced. I believe the
redundant code path was left to keep the Cite extension compatible with
old MediaWiki versions that did not had this hook yet.

I also noticed this code path is most probably entirely redundant with
the current version of MediaWiki. The *only* thing this code does is
blocking the ParserBeforeTidy hook from doing the same thing a second
time if the ParserAfterParse hook was called before. But it does *not*
block any other compination, e.g. if the two hooks are called the other
way around, or the same hook twice.

In core, it looks like it is impossible for the ParserBeforeTidy hook
being fired without the ParserAfterParse hook being fired before. If this
is true, this is in fact dead code.

Change-Id: Iacf8b600c7abdeaf89c22c2fc31e646f57245e47
2019-12-04 16:56:43 +01:00
..
CiteDataModuleTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteHooksUnitTest.php Remove ApiQueryReferences support 2019-11-28 11:08:46 +01:00
CiteKeyFormatterTest.php Make the normalizeKey() method private 2019-11-29 19:02:48 +01:00
CiteParserHooksTest.php Remove obsolete ParserBeforeTidy hook handler 2019-12-04 16:56:43 +01:00
CiteParserTagHooksTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteUnitTest.php Rename test to follow function name 2019-12-04 11:23:55 +01:00
FootnoteBodyFormatterTest.php Don't indent refs with forbidden extends="…" 2019-12-04 15:17:03 +00:00
ReferenceStackTest.php Cover rollback with tests 2019-12-03 09:53:23 +01:00