wiki.techinc.nl/tests/phpunit/includes
Thiemo Kreuz e4b51a4aae Fix mismatching type hints in ChangesListSpecialPageTest
Some of these parameters are marked as optional and nullable,
but can never be null (the test would fail then), and are
never missing.

While I'm here I also add more strict type hints for
parameters and return types. Note this is only done in tests
and impossible to cause trouble in production.

Change-Id: I1c66325c97d5ea86d9822e789a36542faad1272b
2021-05-01 15:39:54 +00:00
..
actions Regression tests for ApiRollback and RollbackAction 2021-04-26 07:58:44 -07:00
api Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
auth Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
block Introduce infrastructure for partial blocks for actions 2021-04-27 21:53:13 +01:00
cache Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
changes build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
changetags Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
collation
config
content build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
context Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
db Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
debug Replace PHPUnit ->returnValue() with ->willReturn() shortcut 2021-04-22 10:37:45 +02:00
deferred Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
diff Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
editpage
exception
externalstore Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
filebackend Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
filerepo Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
GlobalFunctions MediaHandlerFactory: inject a logger 2021-03-31 17:45:51 +00:00
HookContainer
htmlform
http phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
import Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
installer Installer: Do not use mediawiki.skinning.interface module 2021-04-15 11:11:32 -07:00
interwiki Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
jobqueue Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
language
libs Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
linkeddata
linker
logging Stop using legacy ActorMigration field "log_user" 2021-04-28 16:29:04 +10:00
mail Use UserIdentityValue in tests where possible 2021-04-22 09:32:43 +02:00
media phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
Message phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
Navigation
objectcache
page build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
pager Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ParamValidator/TypeDef
parser build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
password UserPasswordPolicyTest: Replace PasswordCannotMatchBlacklist with PasswordCannotMatchDefaults 2021-04-18 23:52:57 +01:00
Permissions phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
poolcounter ParserCache: only use in-process caching for metadata 2021-04-06 17:53:38 -06:00
preferences Hard deprecate User ::isIP, ::getOptions 2021-04-26 16:10:24 +00:00
rcfeed phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
registration Convert ExtensionJsonValidatorTest to pure unit tests 2021-03-22 16:02:51 +00:00
resourceloader Merge "Create the content-links (and -external) ResourceLoaderSkinModule feature" 2021-04-26 10:26:10 +00:00
Rest Convert MWBasicRequestAuthorizerTest to a unit test 2021-04-23 23:35:09 +00:00
Revision Merge "Replace uses of DB_MASTER with DB_PRIMARY" 2021-04-29 19:04:17 +00:00
search Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
session Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
shell
site Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
skins Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
sparql
specialpage Fix mismatching type hints in ChangesListSpecialPageTest 2021-05-01 15:39:54 +00:00
specials Fix mismatching type hints in ChangesListSpecialPageTest 2021-05-01 15:39:54 +00:00
Storage Merge "Remove unnecessary ->equalTo() from tests" 2021-04-23 14:43:04 +00:00
title NamespaceInfoTest: remove outdated comment about globals 2021-04-23 23:07:11 +00:00
upload
user Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
utils Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
watcheditem Convert WatchedItem et al to PageIdentity 2021-03-26 15:51:19 -04:00
ActorMigrationTest.php Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
ActorMigrationTest.sql
AutoLoaderTest.php Add script for resolving class names to files 2021-04-16 11:04:39 +00:00
CategoryTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
CommentStoreCommentTest.php
CommentStoreTest.php build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php build: Swap deprecated @codingStandardsIgnore to phpcs:ignore 2021-04-04 21:18:22 +02:00
EditPageConstraintsTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
EditPageTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ExportTest.php
ExtraParserTest.php Parser: Trim trailing whitespace as the last step in pre-save transform 2021-04-14 20:53:49 +02:00
FauxRequestTest.php
GitInfoTest.php
HooksTest.php
HtmlTest.php
LinkerTest.php
LinkFilterTest.php
MagicWordFactoryTest.php
MediaWikiServicesTest.php
MediaWikiTest.php
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Remove unneeded conversions to User objects 2021-04-23 20:20:36 +00:00
MessageTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
MockServiceWiring.php
MovePageTest.php Factor out rollback logic from WikiPage 2021-04-14 11:49:07 -07:00
MultiHttpClientTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
MWTimestampTest.php build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
OutputPageTest.php build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
PagePropsTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ReadOnlyModeTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
RevisionDbTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
RevisionTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php
SiteStatsTest.php
StatusTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
TemplateCategoriesTest.php
TestUser.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
TestUserRegistry.php
TimeAdjustTest.php
TitleMethodsTest.php RecentChange: replace Title in method signatures 2021-04-26 17:48:02 +02:00
TitleTest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
WebRequestTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
WikiMapTest.php
WikiReferenceTest.php
XmlTest.php