wiki.techinc.nl/tests/phpunit/includes/parser
C. Scott Ananian 5ae946d3a6 Rename ParserOutput::setCategoryLinks() and ::getCategoryLinks()
Make ::setCategory() consistent with the corresponding singular method,
which is ::addCategory(), not ::addCategoryLink().  Also, don't return
a value.

This renaming is in preparation for factoring out a write-only base
class from ParserOutput suitable to be used by Parsoid.

Note that OutputPage does distinguish a 'category link' from a
'category list', and there are separate OutputPage::getCategories()
and OutputPage::getCategoryLinks() methods.  However, the category
map in ParserOutput isn't exactly the same as either of these:
it's actually a map (or list of pairs) of category name to sort key.

Rename ParserOutput::getCategoryLinks() to ::getCategoryNames()
in order to clarify that the concept involved is not the same as
the OutputPage "category links" methods.

Code search:
https://codesearch.wmcloud.org/deployed/?q=-%3E(get%7Cset)CategoryLinks%5C(&i=nope&files=&excludeFiles=&repos=

(Note that many of the code search matches are for the methods in
OutputPage, which we are trying to disambiguate here.)

Bug: T287216
Change-Id: Idb383d3d9ef7b76f8a0208a057a3cb8c639465c9
2021-10-15 09:45:36 -07:00
..
CacheTimeTest.php Tests: remove unneeded tearDown functions 2021-07-27 13:15:40 +00:00
CoreParserFunctionsTest.php Hard deprecate User::setOption() 2021-09-26 17:18:54 +02:00
LinkHolderArrayIntegrationTest.php Strict return types for PageIdentity 2021-01-18 17:33:14 +01:00
MagicVariableTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ParserCacheSerializationTestCases.php Rename ParserOutput::setCategoryLinks() and ::getCategoryLinks() 2021-10-15 09:45:36 -07:00
ParserCacheTest.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
ParserMethodsTest.php Make Parser::$mStripState private 2021-10-13 19:58:50 -04:00
ParserOptionsTest.php Remove "auto-number headings" preference 2021-10-03 00:47:08 +02:00
ParserOutputTest.php ParserOutput: remove Title from public interface 2021-10-14 10:46:53 +00:00
ParserPreloadTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ParserTest.php parser: Replace deprecated MWHttpRequest::factory 2021-08-04 13:22:50 +00:00
PreprocessorTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
RevisionOutputCacheTest.php Tests: remove unneeded tearDown functions 2021-07-27 13:15:40 +00:00
SanitizerTest.php Sanitizer: Replace RFC 3454 by RFC 8264 for clearUrl 2021-08-26 21:02:21 +00:00
StripStateTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
TagHooksTest.php Parser: initialize preprocessor in constructor 2021-03-16 22:37:40 +00:00
validateParserCacheSerializationTestData.php Hard-deprecate all public property access on CacheTime and ParserOutput. 2021-10-13 13:27:16 -04:00