wiki.techinc.nl/tests/phpunit/includes
C. Scott Ananian 9632dfb041 Move ::addTrackingCategory() implementation to TrackingCategories
This moves the implementation of ParserOutput::addTrackingCategory()
to the TrackingCategories class as a non-static method. This makes
invocation from ParserOutput awkward, but when invoking as
Parser::addTrackingCategory() all the necessary services are
available.  As a result, we've also soft-deprecated
ParserOutput::addTrackingCategory(); new users should use the
TrackingCategories::addTrackingCategory() method, or else
Parser::addTrackingCategory() if the parser object is available.

The Parser class is already kind of bloated as it is (alas), but there
aren't too many callsites which invoke
ParserOutput::addTrackingCategory() and don't have the corresponding
Parser object handy; see:

https://codesearch.wmcloud.org/search/?q=%5BOo%5Dutput%28%5C%28%5C%29%29%3F-%3EaddTrackingCategory%5C%28&i=nope&files=&excludeFiles=&repos=

Change-Id: I697ce188a912e445a6a748121575548e79aabac6
2021-10-15 14:17:58 -04:00
..
actions Remove hard deprecated Watchlist methods in User, Title, and WatchAction 2021-10-04 15:14:24 -04:00
api Merge "Encode & to & in displaytitle fallback" 2021-10-14 17:58:06 +00:00
auth AuthManager: inject more services 2021-08-05 21:31:02 +00:00
block tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
cache Use PageUpdater's fluent interface 2021-10-05 07:18:17 +01:00
changes Title: Make use of BacklinkCacheFactory service 2021-09-09 14:04:02 +01:00
changetags ChangeTagsTest: make use of assertSelect() 2021-08-05 22:55:21 +00:00
collation CollationTest: Be more specific with @covers 2021-09-08 13:46:58 +00:00
config
content Move Content::getParserOutput & AbstractContent::fillParserOutput to ContentHandler 2021-09-29 13:10:51 +03:00
context
db ILoadBalancer: Rename forEachOpenMasterConnection to forEachOpenPrimaryConnection 2021-09-03 13:05:23 -07:00
debug Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
deferred Rename ParserOutput::{get,set,unset}Property to {get,set,unset}PageProperty 2021-10-08 10:07:17 -04:00
diff Rename diff-related classes for LTR compatibility 2021-09-17 22:58:44 +00:00
editpage editpage: Replace usage of Title in TextboxBuilder::class 2021-09-20 10:24:00 +01:00
exception build: Updating dependencies 2021-07-22 03:36:05 +00:00
externalstore
filebackend Remove LockManagerGroup::singleton() and ::destroySingletons() 2021-09-17 00:25:44 +02:00
filerepo tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
GlobalFunctions GlobalFunctions: Test clean up for wfExpandUrl() 2021-09-25 20:06:57 +00:00
HookContainer
htmlform
http tests: MWHttpRequestTest is a unit test, not an integration test 2021-10-08 12:24:34 -07:00
import Migrate WikiPage::doEditUpdates() to using PageUpdaterFactory 2021-10-07 11:17:43 +01:00
installer
interwiki
jobqueue Title: Make use of BacklinkCacheFactory service 2021-09-09 14:04:02 +01:00
language
languages Fix various typos in documentation 2021-08-23 09:03:44 +00:00
libs Hard-deprecate all public property access on CacheTime and ParserOutput. 2021-10-13 13:27:16 -04:00
linkeddata build: Updating dependencies 2021-07-22 03:36:05 +00:00
linker Remove stub threshold feature 2021-09-13 09:26:38 -07:00
logging build: Updating dependencies 2021-07-22 03:36:05 +00:00
mail Make MailAddressTest a unit test 2021-07-23 10:30:04 +00:00
media PNGMetadataExtractor: skip oversize chunks instead of aborting 2021-07-28 14:14:22 +10:00
Message Add message parameter type for User Groups 2021-10-14 15:02:13 -04:00
Navigation
objectcache build: Updating dependencies 2021-07-22 03:36:05 +00:00
page Merge "Use PageUpdater's fluent interface" 2021-10-05 12:30:37 +00:00
pager
ParamValidator/TypeDef Make UserDefTest a unit test 2021-09-13 23:55:51 -04:00
parser Move ::addTrackingCategory() implementation to TrackingCategories 2021-10-15 14:17:58 -04:00
password Remove PasswordCannotMatchUsername password policy 2021-09-06 14:55:12 +00:00
Permissions Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
poolcounter Use PageUpdater's fluent interface 2021-10-05 07:18:17 +01:00
preferences build: Updating dependencies 2021-07-22 03:36:05 +00:00
rcfeed build: Updating dependencies 2021-07-22 03:36:05 +00:00
registration registration: Make it easier to set a skin's templateDirectory 2021-08-27 00:22:38 -07:00
resourceloader resourceloader: omit noscript module from client registry 2021-10-07 01:21:02 +00:00
Rest build: Updating dependencies 2021-07-22 03:36:05 +00:00
Revision Use PageUpdater's fluent interface 2021-10-05 07:18:17 +01:00
search Fix indent of line comment 2021-09-11 20:56:18 +02:00
session Use CentralIdLookup service instead of static factory 2021-07-26 07:00:53 -07:00
shell Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
site
skins Hard deprecate User::setOption() 2021-09-26 17:18:54 +02:00
sparql sparql: Replace deprecated Http::userAgent() in SparqlClient 2021-08-04 13:54:13 +00:00
specialpage Hard deprecate User::setOption() 2021-09-26 17:18:54 +02:00
specials Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
Storage Hard deprecate User::setOption() 2021-09-26 17:18:54 +02:00
title Remove the deprecated IP class 2021-09-26 13:58:28 +02:00
upload Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
user Remove hard deprecated Watchlist methods in User, Title, and WatchAction 2021-10-04 15:14:24 -04:00
utils build: Updating dependencies 2021-07-22 03:36:05 +00:00
watcheditem build: Updating dependencies 2021-07-22 03:36:05 +00:00
ActorMigrationTest.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
ActorMigrationTest.sql Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
AutoLoaderTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
CategoryTest.php Remove Title from signatures in CategoryViewer 2021-09-13 16:14:06 +00:00
CommentStoreCommentTest.php
CommentStoreTest.php
CommentStoreTest.sql
ContentSecurityPolicyTest.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
EditPageConstraintsTest.php Avoid using ContentHandler::getContentText() 2021-09-20 15:32:44 +02:00
EditPageTest.php Merge "Avoid using ContentHandler::getContentText()" 2021-09-20 19:14:10 +00:00
ExportTest.php WikiExporter: inject services 2021-09-06 10:03:37 +00:00
ExtraParserTest.php Rename ParserOutput::setCategoryLinks() and ::getCategoryLinks() 2021-10-15 09:45:36 -07:00
FauxRequestTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
GitInfoTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
HooksTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
HtmlTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
LinkerTest.php Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
LinkFilterTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MagicWordFactoryTest.php
MediaWikiServicesTest.php
MediaWikiTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Clean up MergeHistory 2021-07-13 12:01:04 -07:00
MessageTest.php Add message parameter type for User Groups 2021-10-14 15:02:13 -04:00
MockServiceWiring.php
MovePageTest.php Use MovePageFactory and hard deprecate constructing MovePage objects directly 2021-08-11 15:44:09 -04:00
MultiHttpClientTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MWTimestampTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
OutputPageTest.php resourceloader: Remove obsolete logic for handheld=yes pageviews 2021-10-09 02:47:39 +01:00
PagePropsTest.php tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
SampleTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SiteStatsTest.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
StatusTest.php
TemplateCategoriesTest.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
TestUser.php Create new UserGroupManager::addUserToMultipleGroups method 2021-08-30 10:24:46 -04:00
TestUserRegistry.php
TimeAdjustTest.php
TitleTest.php Remove hard deprecated Watchlist methods in User, Title, and WatchAction 2021-10-04 15:14:24 -04:00
TitleUrlTest.php Introduce TitleUrlTests 2021-09-08 07:48:45 +00:00
TrackingCategoriesTest.php Move ::addTrackingCategory() implementation to TrackingCategories 2021-10-15 14:17:58 -04:00
WebRequestTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
WikiMapTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
XmlTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00