wiki.techinc.nl/tests/phpunit/includes
Kosta Harlan 82cf3a3cfd Add getMockMessage to MediaWikiTestCaseTrait
This patch adds two more commonly used methods for params/rawParams to
getMockMessage and relocates the functionality to the MediaWikiTestCaseTrait.

Follows-Up: Ia94521b786

Change-Id: If9a6ccf1885ba11fbf3fb1b586006118462c1410
2020-05-20 21:52:11 +02:00
..
actions Merge "Hide deprecated warnings for Hooks::clear()" 2020-04-15 02:38:31 +00:00
api Merge "Use new TalkPageNotificationManager" 2020-05-20 19:21:52 +00:00
auth Update setTemporaryHook() to use scopedRegister() 2020-05-11 14:12:00 +10:00
block DatabaseBlock: Deprecate some obsolete methods 2020-04-15 20:35:48 +01:00
cache cache: Remove use of $wgContLanguageCode in MessageCacheTest 2020-03-15 00:23:02 +00:00
changes CategoryMembershipChangeTest: Remove use of Revision objects 2020-04-24 04:36:51 +00:00
changetags tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
collation tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
config Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
content Add @author tags I forgot to include 2020-04-11 08:13:48 +00:00
context Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00
db rdbms: add "loadMonitor" parameter to LBFactoryMulti/LBFactorySimple 2020-03-27 20:43:00 -07:00
debug deprecation: Remove DeprecationHelper::newArgumentWithDeprecation and change callers accordingly 2020-04-27 20:23:58 +03:00
deferred Add missing visibility on methods of deferred related classes 2020-05-10 22:15:41 +00:00
diff Fix most PHPUnit 8 compat issues in DBless tests 2019-12-15 00:24:21 +00:00
editpage Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
exception Add getMockMessage to MediaWikiTestCaseTrait 2020-05-20 21:52:11 +02:00
externalstore ExternalStore: report cause of non-exception failure 2020-04-17 18:00:28 +02:00
filebackend tests: Make static/non-static functions match 2020-04-29 10:59:53 +03:00
filerepo Use MediaWikiServices::getRepoGroup in file related classes 2020-03-14 12:36:27 +00:00
GlobalFunctions GlobalFunctions: Fix wfPercent() with negative accuracy 2020-05-04 18:48:08 +03:00
HookContainer HookContainer Integration Test 2020-05-11 13:45:39 -07:00
htmlform HTMLForm: Allow status object to have raw parameters 2020-02-09 18:06:12 +01:00
http Support cookies in GuzzleHttpRequest 2020-03-18 21:48:26 +03:00
import Hard deprecate Revision::getQueryInfo and ::getArchiveQueryInfo 2020-03-26 23:53:19 +00:00
interwiki Remove Language::factory and getParentLanguage use 2019-10-27 12:34:28 +02:00
jobqueue Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
language Tests: Remove unneeded uses of global $wgUser 2020-03-12 00:52:43 +00:00
libs Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
linkeddata Fix most PHPUnit 8 compat issues in DBless tests 2019-12-15 00:24:21 +00:00
linker tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
logging Stop using assertContains with string haystack 2019-12-15 00:22:44 +00:00
mail
media Call BitmapMetadataHandler functions statically 2020-05-18 00:53:43 +01:00
Message UserNameUtils: use ITextFormatter instead of MessageLocalizer 2020-04-13 09:28:02 -07:00
Navigation Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
objectcache SqlBagOStuff: Add a limit to key length 2020-02-26 13:22:51 -08:00
page Hard deprecate PageArchive::getPreviousRevision 2020-05-06 20:23:57 +00:00
pager
ParamValidator/TypeDef UserDef: Don't return incomplete UserIdentityValues 2020-02-19 15:28:40 -05:00
parser ParserOptionsTest: Rename non-global variable $wgUser 2020-04-29 17:32:10 +00:00
password Password policy to check if a password is a substring of a username 2020-01-13 23:09:13 +00:00
Permissions Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
poolcounter Replace uses and hard deprecate Article:: and WikiPage::getRevision 2020-04-20 23:06:48 +00:00
preferences Merge "Deprecate no LanguageNameUtils constructing DefaultPrederencesFactory" 2020-05-11 21:13:20 +00:00
rcfeed tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
registration tests: Add test file to test SPDX license expressions 2020-05-02 12:47:31 +01:00
resourceloader Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
Rest WebRequest & RequestFromGlobals: get HTTP headers in one way 2020-04-03 09:32:41 +02:00
Revision Merge "RevisionStore: improve error handling in newRevisionsFromBatch" 2020-05-08 17:51:45 +00:00
search Fix failing tests relying on private Hooks.php properties 2020-04-13 22:58:26 +00:00
session Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
shell Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
site Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
skins skins: Move some BaseTemplate functions to Skin 2020-05-09 02:23:48 +00:00
sparql Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
specialpage Fix SingleSpaceBeforeSingleLineComment 2020-05-11 00:57:11 +00:00
specials Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
Storage Merge "RevisionStore and PageUpdater: handle stale page ID" 2020-04-27 21:16:52 +00:00
title Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
upload Tests: Replace ::doDeleteArticle with WikiPage::doDeleteArticleReal 2020-03-25 11:34:17 -07:00
user Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
utils Move UIDGenerator code to a service and put it under /libs 2020-02-18 00:20:40 +00:00
watcheditem Filter out expired items from watcher counts 2020-05-19 12:13:09 -07:00
ActorMigrationTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
ActorMigrationTest.sql
AutoLoaderTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
AutopromoteTest.php Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
CategoryTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
CommentStoreCommentTest.php
CommentStoreTest.php Remove CommentStore::newKey, deprecated and unused 2020-02-20 02:00:15 +00:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php Fix inverted assertions in ContentSecurityPolicyTest 2020-05-14 19:23:37 +02:00
DeprecatedGlobalTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
DiffHistoryBlobTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
EditPageTest.php Merge "phpunit: Change optional params before required params to also be required" 2020-03-30 21:29:45 +00:00
ExportTest.php Work around change in SimpleXMLElement behavior introduced in PHP 7.3.17 2020-04-30 18:27:15 -04:00
ExtraParserTest.php Hard-deprecate direct calls to Parser::__construct() 2020-04-16 16:34:34 -04:00
FauxRequestTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
GitInfoTest.php Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00
HooksTest.php Hook Container 2020-04-17 15:48:38 +10:00
HtmlTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
LinkerTest.php Make formatLinksInComment understand and link [[Text[[Link]] 2020-05-13 14:26:35 +02:00
LinkFilterTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ListToggleTest.php Remove Language::factory and getParentLanguage use 2019-10-27 12:34:28 +02:00
MagicWordFactoryTest.php Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
MediaWikiServicesTest.php tests: Remove BC code for PHP < 7.1 2020-03-09 18:12:43 +01:00
MediaWikiTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
MediaWikiVersionFetcherTest.php Provide MW_VERSION and deprecate fake global $wgVersion 2020-02-25 01:55:21 +00:00
MergeHistoryTest.php Add MergeHistoryFactory interface, implemented by PageCommandFactory 2020-05-13 19:08:09 +00:00
MessageTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
MovePageTest.php Add MergeHistoryFactory interface, implemented by PageCommandFactory 2020-05-13 19:08:09 +00:00
MultiHttpClientTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
MWTimestampTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
OutputPageTest.php Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
PagePropsTest.php Tests: Replace ::doDeleteArticle with WikiPage::doDeleteArticleReal 2020-03-25 11:34:17 -07:00
PrefixSearchTest.php Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
ReadOnlyModeTest.php
RevisionDbTest.php Fix SingleSpaceBeforeSingleLineComment 2020-05-11 00:57:11 +00:00
RevisionTest.php Replace uses and hard deprecate Revision::getSha1 2020-04-30 17:44:11 +00:00
RevisionTestModifyableContent.php Fix tests/ PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 04:30:21 +01:00
RevisionTestModifyableContentHandler.php
SampleTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SiteStatsTest.php Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
StatusTest.php Add getMockMessage to MediaWikiTestCaseTrait 2020-05-20 21:52:11 +02:00
SystemBlockTest.php
TemplateCategoriesTest.php Pass a user to WikiPage::doDeleteArticleReal, use new signature 2020-03-19 00:54:29 +00:00
TestLocalisationCache.php Make LocalisationCache a service 2019-10-07 13:18:47 -07:00
TestLogger.php
TestUser.php
TestUserRegistry.php Add missing @param and @return to documentation 2019-11-16 13:45:55 +01:00
TimeAdjustTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
TitleMethodsTest.php Remove Title move functions, deprecated in favor of MovePage class 2020-02-19 20:44:55 -08:00
TitlePermissionTest.php Hard deprecate Title::getUserPermissionsErrors 2020-02-26 05:09:55 +00:00
TitleTest.php Fix SingleSpaceBeforeSingleLineComment 2020-05-11 00:57:11 +00:00
WebRequestTest.php WebRequest & RequestFromGlobals: get HTTP headers in one way 2020-04-03 09:32:41 +02:00
WikiMapTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
WikiReferenceTest.php
XmlTest.php Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00