diff options
author | C. Scott Ananian <cscott@cscott.net> | 2023-09-21 13:06:50 -0400 |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2023-09-29 15:25:50 -0400 |
commit | d20663259f2773a47db7f4046fbbf104fcc7c941 (patch) | |
tree | c259b6e47c969baec29e5e94262663d1737dcd15 /tests/phpunit/includes/parser/ParserOutputTest.php | |
parent | 23b972c89b3632f8f2aa0cc9b74a2b32fb8e19c2 (diff) | |
download | mediawikicore-d20663259f2773a47db7f4046fbbf104fcc7c941.tar.gz mediawikicore-d20663259f2773a47db7f4046fbbf104fcc7c941.zip |
Hard-deprecate ParserOutput::getCategories(), deprecated in 1.40
It is difficult to distinguish this method from OutputPage::addJsConfigVars()
in code search:
https://codesearch.wmcloud.org/deployed/?q=%5BOo%5Dut%28put%29%3F%28%5C%28%5C%29%29%3F-%3EgetCategories%5C%28&files=&excludeFiles=&repos=
We generally try to replace $output with $parserOutput or $pOutput
as we touch code to improve the ability of codesearch to dig up
deprecated ParserOutput methods.
Bug: T305161
Depends-On: I02dd4f61c43c225b0ef6dc51c3e4f9d967a0a272
Depends-On: I61d2d77591579d825ad9d37f902e40366be55dd6
Depends-On: I91155106b7a9e10d3334f95ba4936d02851bfb11
Depends-On: Iaca745c79d9587571af03b23b21d76a6cba0ebf1
Depends-On: Id10a171c44411b1233ee4d6cf8fbd3dc57744eef
Depends-On: I47a25c011d9bd4b1a15dda4e673e32c25eb64f2b
Depends-On: I683fc768aba50b801f46467fcfa1668fa8731ea6
Change-Id: I5a2ac1c99b8b199102e12f0d32dd6ec5cdc24054
Diffstat (limited to 'tests/phpunit/includes/parser/ParserOutputTest.php')
-rw-r--r-- | tests/phpunit/includes/parser/ParserOutputTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/parser/ParserOutputTest.php b/tests/phpunit/includes/parser/ParserOutputTest.php index be1856c3a14c..4331b2242791 100644 --- a/tests/phpunit/includes/parser/ParserOutputTest.php +++ b/tests/phpunit/includes/parser/ParserOutputTest.php @@ -882,7 +882,7 @@ EOF 'ru' => [ 'Kittens_RU' => 1, 'Dragons_RU' => 1, ], 'fr' => [ 'Kittens_FR' => 1 ], ], - 'getCategories' => [ 'Foo' => 'X', 'Bar' => 'Y' ], + 'getCategoryMap' => [ 'Foo' => 'X', 'Bar' => 'Y' ], 'getImages' => [ 'Billy.jpg' => 1, 'Puff.jpg' => 1 ], 'getFileSearchOptions' => [ 'Billy.jpg' => [ 'time' => '20180101000013', 'sha1' => 'DEAD' ], |