wiki.techinc.nl/tests/phpunit/includes
Niklas Laxström a08fc9eed6 Improve documentation of the PageContentLanguage hook
Clarify that the type of second parameter that is being passed
to the hooks can be anything because one hook can change it and
then it is passed to another hook without the hook caller having
possibility to check or modify the value.

Clarify that hooks should only return Language objects.

Rename $wgLang to $userLang in the hook parameter documentation to
avoid false posivite matches for the global.

Fix some typos, use Title::inNamespace and add a test assertion.

Also, the $content parameter is unused by all implementations of
this method, and on quick look never passed by any caller. I kept
it for now, however.

Bug: T214358
Change-Id: Iae49d2998c2b762565d232c0337d84d43a4a900c
2019-03-12 08:05:59 +01:00
..
actions Add PHPUnit tests for methods in ViewAction::class 2018-11-20 18:13:50 +01:00
api API: Spread autoblocks from action=edit and action=move 2019-02-19 17:34:48 -05:00
auth Fix password policy handling in temporary password provider 2019-02-20 12:25:49 -08:00
block Set BlockDisablesLogin false for Blocking group tests that assume this 2019-02-19 20:17:48 +00:00
cache messagecache: check overridable message array in getMsgFromNamespace() 2018-10-16 20:39:38 +00:00
changes EnhancedChangesList: Load style module via addModuleStyles() 2019-02-12 01:29:36 +01:00
changetags Fix order of arguments in ChangeTags::getPrevTags 2019-01-09 10:14:40 +01:00
collation
composer
config Deprecate MediaWikiTestCase::stashMwGlobals 2018-10-07 19:39:47 +03:00
content Improve documentation of the PageContentLanguage hook 2019-03-12 08:05:59 +01:00
context
db rdbms: Use more narrow type hints in LBFactoryTest 2019-02-13 18:27:26 +00:00
debug Add missing @covers to backend related tests 2019-02-01 22:08:32 +01:00
deferred Expose external link additions and deletions 2019-02-07 17:09:36 -05:00
diff Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
editpage
exception
externalstore
filebackend Remove a few obscure "done" and "empty" comments 2019-01-30 20:35:14 +00:00
filerepo Add missing property declarations to LocalFileTest 2019-01-02 15:25:44 +01:00
GlobalFunctions Use new externallinks.el_index_60 field 2018-11-12 22:33:18 +00:00
htmlform Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
http http: Support callback functions in GuzzleHttpRequest 2019-01-24 22:05:10 +00:00
import Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
installer Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
interwiki Merge "Hard deprecate Interwiki static methods" 2018-06-09 09:33:09 +00:00
jobqueue Merge "[MCR] Introduce SlotRoleHandler and SlotRoleRegistry" 2018-12-03 16:20:06 +00:00
json Finish FormatJson::encode() test coverage 2019-02-02 22:04:35 -08:00
libs resourceloader: Make JSMinPlus allow reserved words as property name (ES5) 2019-02-25 01:43:57 +03:30
linkeddata
linker Clear the title cache in MutableRevisionRecordTest 2018-10-25 21:16:27 +00:00
logging Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
mail
media JpegPixelFormatTest: use Shell class 2019-02-09 22:20:25 -08:00
objectcache
page Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
pager
parser Add missing @covers to parser related tests 2019-02-01 21:15:40 +00:00
password Add support for Argon2 password hashing 2019-02-10 02:20:52 -08:00
poolcounter Require ClassMatchesFilename sniff to pass for most of tests/ 2019-01-29 23:57:12 -08:00
preferences test: disable hook when testing default preferences 2018-09-10 10:25:22 +02:00
rcfeed
registration resourceloader: Support TestModules registration via extension.json 2019-02-05 15:27:37 -08:00
resourceloader resourceloader: Change 'packageFiles' format to be JSON-compatible 2019-02-22 19:06:39 +00:00
Revision Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
search Add missing @covers to search related tests 2019-02-01 21:35:26 +00:00
session Add session_write_close() calls to SessionManager tests 2018-10-16 10:22:33 -04:00
shell Remove excessive indenting of parameters on newlines 2018-11-06 10:57:17 +00:00
site Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
skins
sparql build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-16 15:51:11 +00:00
specialpage No yoda conditions 2018-11-21 17:54:39 +01:00
specials Separate out different functionalities of Block::prevents 2019-02-21 18:21:28 +00:00
Storage Fix @param tags 2019-02-03 16:49:10 +01:00
tidy build: Updating mediawiki/mediawiki-codesniffer to 24.0.0 2019-02-07 18:39:42 +00:00
title TitleFormatter: Implement fbc1449653 and unify prefix logic 2018-08-17 17:43:52 -07:00
upload Add missing empty lines between methods 2019-01-15 19:14:35 +00:00
user Add test for User::isBlockedFrom 2019-02-05 18:13:32 +00:00
utils Better detection for old MS Office files 2019-01-23 09:23:17 +11:00
watcheditem Watchlist: Commit after each batch watchlist insertion and removal 2018-10-18 14:33:50 -04:00
ActorMigrationTest.php Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
AutoLoaderTest.php
AutopromoteTest.php
BlockTest.php Separate out different functionalities of Block::prevents 2019-02-21 18:21:28 +00:00
CommentStoreCommentTest.php Fix CommentStoreComment RawMessage construction 2019-02-13 11:17:10 -05:00
CommentStoreTest.php Add missing use for IMaintainableDatabase 2019-02-20 20:57:18 +01:00
CommentStoreTest.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
ContentSecurityPolicyTest.php CSP: In tests, use setMwGlobals() instead of manual set+undo 2018-08-19 01:43:52 +01:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php Fix IP handling in DerivativeRequest 2018-10-31 20:34:58 -07:00
DiffHistoryBlobTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
EditPageTest.php Add missing @covers to action related tests 2019-02-01 22:13:32 +01:00
ExportTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
ExtraParserTest.php During special page transclusion, save and restore context's WikiPage too 2018-10-19 22:19:52 +02:00
FauxRequestTest.php
FauxResponseTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
FormOptionsInitializationTest.php Use TestingAccessWrapper in FormOptionsInitializationTest 2019-01-29 21:33:42 -08:00
FormOptionsTest.php
GitInfoTest.php Allow tests to run with a non-writable source tree 2018-08-30 10:48:50 +10:00
HooksTest.php Drop wfRunHooks, deprecated since 1.25 2018-10-10 15:30:00 -07:00
HtmlTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
LicensesTest.php
LinkerTest.php Don't link wikilinks in section heading autocomments 2018-12-03 12:43:03 -08:00
LinkFilterTest.php Use new externallinks.el_index_60 field 2018-11-12 22:33:18 +00:00
ListToggleTest.php
MagicWordFactoryTest.php MagicWordFactory: Follow-up on I5d2166f155e31900cb40c 2018-12-18 12:12:39 +01:00
MediaWikiServicesTest.php Fully extract services framework as a library 2019-01-16 17:31:05 +01:00
MediaWikiTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
MediaWikiVersionFetcherTest.php Improve MediaWikiVersionFetcherTest 2018-08-10 11:26:57 +03:00
MergeHistoryTest.php MergeHistory: Fix flaky test due to relative timestamp 2018-08-15 02:16:02 +01:00
MessageTest.php Add some missing @covers tags 2019-02-02 21:53:40 -08:00
MovePageTest.php Add missing @covers to action related tests 2019-02-01 22:13:32 +01:00
MultiHttpClientTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
MWNamespaceTest.php MWNamespace: Add getCategoryLinkType() method 2018-06-29 15:37:11 +00:00
MWTimestampTest.php
OutputPageTest.php resourceloader: Make $rl parameter mandatory for MessageBlobStore 2019-02-19 17:16:57 +00:00
PagePropsTest.php Automatically reset namespace caches when needed 2018-08-01 16:30:08 +03:00
PathRouterTest.php Avoid a redirect loop when the request URL is not normalized 2018-07-16 15:55:59 +10:00
PrefixSearchTest.php Reset services before every test 2018-09-03 16:38:58 +00:00
ReadOnlyModeTest.php
RevisionDbTestBase.php Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
RevisionMcrDbTest.php Allow getRevisionText to function without the text table. 2018-10-17 10:54:39 -04:00
RevisionMcrReadNewDbTest.php Allow getRevisionText to function without the text table. 2018-10-17 10:54:39 -04:00
RevisionMcrWriteBothDbTest.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
RevisionNoContentModelDbTest.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
RevisionPreMcrDbTest.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
RevisionTest.php Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Fix typo in tests/includes/SampleTest.php in core 2018-11-02 12:55:09 +00:00
SanitizerValidateEmailTest.php
ServiceWiringTest.php Alphabetize service lists 2018-08-09 22:19:58 -06:00
SiteConfigurationTest.php
SiteStatsTest.php
StatusTest.php
TemplateCategoriesTest.php
TemplateParserTest.php TemplateParser: Pass FLAG_MUSTACHELOOKUP to enable parent context access 2018-09-04 12:39:34 -07:00
TestLogger.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
TestUser.php Password: replace equals() with verify() 2019-01-24 13:40:40 -08:00
TestUserRegistry.php tests: Allow string to be passed to getTestUser() etc. 2018-10-04 15:30:47 +00:00
TimeAdjustTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
TitleArrayFromResultTest.php
TitleMethodsTest.php Fix Title::getFragmentForURL for bad interwiki prefix. 2019-01-23 11:17:21 +01:00
TitlePermissionTest.php Return early in Title::checkUserBlock() if user does not have a block. 2019-02-21 21:41:39 -05:00
TitleTest.php Remove Title->canTalk, deprecated in 1.30, unused 2019-02-07 18:34:44 -08:00
WebRequestTest.php WebRequest: Fix flaky testGetElapsedTime test case 2018-07-16 20:23:30 -07:00
WikiMapTest.php Rename WikiMap DB domain ID methods to reduce confusion with web domains 2019-02-06 12:28:45 -08:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00