Parser::statelessFetchTemplate: remove dead code; add test cases
commit4cc84cdafaa5eaa80c6e11a5be6cc60ee8ed462b
authorC. Scott Ananian <cscott@cscott.net>
Wed, 10 Apr 2024 21:10:22 +0000 (10 17:10 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 10 Apr 2024 21:36:04 +0000 (10 17:36 -0400)
tree10d8d2de58c8bcd9a9f646f6a94a2c5e2057a867
parent3abab91259c87d217a7d9680831b1838f8ecad25
Parser::statelessFetchTemplate: remove dead code; add test cases

Remove dead code left over from the removal of the
BeforeParserFetchTemplateAndtitle (sic) hook in
20c5632c4e58ea8749099d53c55998330108299c.

While we're at it, add test cases for statelessFetchTemplate and
improve coverage.

Followup-To: Ifecd4108eb02ebccc0c7bc4ec432036da08ffe53
Followup-To: Idf1fd12cc61ca30867dc9f8aeb1701fe035fc5ff
Change-Id: I135f5234e7be015a2781d6cb8d23b3143b618c5a
includes/parser/Parser.php
tests/phpunit/includes/parser/BeforeParserFetchTemplateRevisionRecordTest.php [new file with mode: 0644]
tests/phpunit/includes/parser/ParserMethodsTest.php