wiki.techinc.nl/tests/phpunit/includes
Timo Tijhof 08ddbf3465 parser: deprecate unused MagicWord::getId, improve docs and tests
* MagicWord::getId was added in r24808 (164bb322f2) but never used.
  At the time, access modifiers like 'private' were not yet in use.
  Deprecate the method with warnings, for removal in a future release.

* Fix zero coverage for MagicWord, due to constructor being
  internal, this is only intended to be created via array and
  factory classes. Let their tests cover this class.

* Remove redundant file-level description and ensure the class desc
  and ingroup tag are on the class block instead.
  Ref https://gerrit.wikimedia.org/r/q/owner:Krinkle+message:ingroup

* Mark constructor `@internal` (was already implied by
  stable interface policy), and explain where to get the object
  instead.

* Mark load() `@internal`. Method was introduced in 1.1 when the
  class (and PHP) did not yet use visibility modifiers for private
  methods. The only way to get an instance of MagicWord
  (MagicWordFactory::get) already calls load(), the method is not
  a no-op if called a second time, and (fortunately) there exist no
  callers to this outside this class that I could find.

* MagicWordArray::getBaseRegex was marked as internal
  in change I17f1b7207db8d2203c904508f3ab8a64b68736a8.

Change-Id: I4084f858bb356029c142fbdb699f91cf0d6ec56f
2023-10-26 16:07:20 +01:00
..
actions Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
api api: make APIQueryAllUsers handle implicit/*/user rights for aurights 2023-10-24 08:17:30 -07:00
auth AuthManager: deny auto-creation for globally blocked users 2023-10-20 10:07:50 +11:00
block Multiblocks preparation in User::getBlock(), PermissionManager and BlockManager 2023-10-20 10:07:50 +11:00
cache Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Category Hard-deprecate ParserOutput::getCategories(), deprecated in 1.40 2023-09-29 15:25:50 -04:00
changes Drop RecentChange::getPerformer(), deprecated since 1.36 2023-09-27 22:41:21 +00:00
changetags tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
collation
CommentStore tests: Migrate more cases to SQB 2023-09-21 18:30:37 +00:00
composer tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
config Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
content Merge "ParsoidParser: Register watcher after creating ParserOutput object" 2023-10-23 09:21:51 +00:00
db rdbms: Introduce concept of virtual domains and mapping to ext cluster 2023-10-05 13:31:15 +02:00
debug MWDebug: Add support for native PHP warnings to "Console" 2023-10-19 17:13:12 -07:00
deferred Autofix spacing around commas 2023-10-25 01:08:44 +02:00
diff diffs: add line number headings to inline diffs 2023-10-09 22:53:14 -04:00
editpage tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
exception
export tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
ExternalLinks Autofix spacing around commas 2023-10-25 01:08:44 +02:00
externalstore
filebackend Simplify/remove duplicate assertStatusOK and such 2023-10-19 20:04:36 +00:00
filerepo Simplify/remove duplicate assertStatusOK and such 2023-10-19 20:04:36 +00:00
GlobalFunctions Autofix spacing around commas 2023-10-25 01:08:44 +02:00
HookContainer
Html tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
htmlform Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
http http: MultiHttpClient supports TelemetryHeadersInterface 2023-09-12 18:05:17 +02:00
import Replace generic new Exception with more generic ones 2023-10-17 07:59:50 +00:00
installer
interwiki tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
jobqueue Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
language Autofix spacing around commas 2023-10-25 01:08:44 +02:00
languages Autofix spacing around commas 2023-10-25 01:08:44 +02:00
libs Autofix spacing around commas 2023-10-25 01:08:44 +02:00
linkeddata
linker Use $this->getServiceContainer() in tests 2023-10-17 18:40:46 +00:00
logging Use IReadableDatabase over IDatabase in DatabaseLogEntry::newFromId 2023-10-11 00:25:45 +01:00
mail Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
media Autofix spacing around commas 2023-10-25 01:08:44 +02:00
Message
Navigation
objectcache
Output ParserOutput::hasTOCHTML(): Remove old back-compat code 2023-10-12 15:36:31 -04:00
page Revert "Hacks to avoid cold cache misses after ParsoidOutputAccess changes" 2023-10-24 20:08:23 +00:00
pager Switch to ICP in some easy cases 2023-09-26 21:05:16 +02:00
ParamValidator/TypeDef Use $this->getServiceContainer() in tests 2023-10-17 18:40:46 +00:00
parser parser: deprecate unused MagicWord::getId, improve docs and tests 2023-10-26 16:07:20 +01:00
ParserOutputTransform Skin: Separate generation of edit section data from HTML 2023-10-23 21:08:33 +00:00
password Simplify/remove duplicate assertStatusOK and such 2023-10-19 20:04:36 +00:00
Permissions Multiblocks preparation in User::getBlock(), PermissionManager and BlockManager 2023-10-20 10:07:50 +11:00
poolcounter Make use of assertStatusGood/Error and such in tests 2023-10-04 17:16:00 +00:00
preferences Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
profiler
rcfeed Namespace remaining 'specialpage' files under \MediaWiki\SpecialPage 2023-09-18 18:23:13 +01:00
registration Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Request tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
ResourceLoader Autofix spacing around commas 2023-10-25 01:08:44 +02:00
Rest
Revision Make use of assertStatusGood/Error and such in tests 2023-10-04 17:16:00 +00:00
search Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
session tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
shell
site
SiteStats Convert numerous DB queries to use QueryBuilders 2023-10-09 19:06:53 +02:00
skins Namespace TitleValue under \MediaWiki\Title 2023-09-18 18:24:39 +01:00
sparql
specialpage Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
specials Merge "Convert Special:RenameUser to OOUI htmlform" 2023-10-25 13:15:17 +00:00
Status Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Storage Autofix spacing around commas 2023-10-25 01:08:44 +02:00
title Autofix spacing around commas 2023-10-25 01:08:44 +02:00
upload
user Hard deprecate User::isBlocked(), isBlockedFrom() and isBlockedFromCreateAccount() 2023-10-20 10:10:19 +11:00
utils Replace generic new Exception with more generic ones 2023-10-17 07:59:50 +00:00
watcheditem Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
WikiMap tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
xml tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
AutoLoaderTest.php
HooksTest.php Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
MediaWikiServicesTest.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
MediaWikiTest.php Namespace remaining Title-related classes under \MediaWiki\Title 2023-09-19 05:21:23 +00:00
MockServiceWiring.php
SampleTest.php
TestUser.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
TestUserRegistry.php Autofix spacing around commas 2023-10-25 01:08:44 +02:00