wiki.techinc.nl/tests/phpunit/includes
Umherirrender f338645527 Create FauxRequestUpload to fake uploads in tests
And use it in core
Avoid direct use of super global $_FILES

This can breaks all FauxRequest relaying on $_FILES
in tests or production code via FauxRequest::getUpload.
Falls back to $_FILES for the moment

Bug: T48163
Change-Id: I7392acc9bb682ec6b7025dbed0734c142f45c91a
2021-04-06 23:10:43 +02:00
..
actions Remove deprecated code in Action::factory 2021-03-22 20:42:09 +00:00
api Create FauxRequestUpload to fake uploads in tests 2021-04-06 23:10:43 +02:00
auth Make stricter type checks on user email and real name 2021-04-01 15:21:41 -06:00
block Relax AbstractBlock typehints to UserIdentity where possible 2021-03-22 16:12:21 -06:00
cache LocalisationCacheTest: remove legacy setting of globals 2021-03-22 16:37:12 +00:00
changes Convert RecentChange to use UserIdentity and ActorStore 2021-03-11 19:44:29 +01:00
changetags Revert "Add change tags for media additions/removals" 2021-03-26 15:16:08 +00:00
collation More misc test cleanup 2020-12-24 00:52:06 +00:00
config Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
content Merge "ContentHandlerTest: merge single use private method" 2021-04-01 05:31:51 +00:00
context Rename Authority::getPerformer() to ::getUser() 2021-03-04 12:45:28 -07:00
db rdbms: avoid undefined "expectBy" notices in TransactionProfiler (II) 2021-03-16 03:58:11 +00:00
debug Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
deferred Remove $wgPagePropsHaveSortkey 2021-03-13 12:08:49 -08:00
diff Add support for derived MCR slots 2021-03-18 15:34:46 -04:00
editpage TextboxBuilderTest: merge single use method 2021-03-11 16:32:24 +00:00
exception Remove sepate getMockWgOut() method in exception tests 2021-03-08 03:54:14 +00:00
externalstore ExternalStoreTest: use a data provider 2021-03-09 21:10:34 +00:00
filebackend Tests: Start marking some closures as static 2021-02-06 19:57:42 +00:00
filerepo LocalFileTest: use assertInstanceOf 2021-03-12 16:55:59 +00:00
GlobalFunctions WfExpandUrlTest use yield for test cases 2021-03-01 15:45:33 +00:00
HookContainer Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
htmlform Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
http Add missing @param and @return to documentation in tests 2021-01-22 19:57:25 +01:00
import Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
interwiki phpunit: Remove odd "MediaWiki" group from tests using it 2021-01-08 18:35:30 +00:00
jobqueue tests: Use data provider for UserEditCountInitJobTest cases 2021-03-27 02:13:13 +00:00
language
libs Use MWMySQLPlatform class in test 2021-03-21 19:30:06 +01:00
linkeddata Remove broken/outdated @param/@throws tags from @dataProviders 2021-01-21 03:42:42 +00:00
linker Convert LinkRendererFactoryTest to a pure unit test 2021-03-10 15:35:13 +00:00
logging Tests: Start marking some closures as static 2021-02-06 19:57:42 +00:00
mail Convert mail namespace to Authority/UserIdentity 2021-04-01 15:46:09 -06:00
media Merge "Fix replacement of control chars in DJVU text output" 2021-03-29 15:38:33 +00:00
Message Convert ConverterTest to pure unit tests 2021-03-22 15:59:42 +00:00
Navigation
objectcache Make SqlBagOStuffTest a pure unit test 2021-02-27 02:22:41 +00:00
page Merge "Use PageStore in RevisionStore" 2021-04-05 19:54:40 +00:00
pager Improve some function documentation in tests 2021-01-14 22:13:55 +01:00
ParamValidator/TypeDef Make TypeDefTestCase::getInstance() abstract. 2021-02-06 12:31:00 +01:00
parser Convert ParserCache to PageRecord 2021-04-02 21:14:54 -06:00
password Merge "Clean up PasswordPolicyChecksTest" 2021-03-30 11:59:25 +00:00
Permissions PermissionManagerTest: use data providers 2021-03-29 20:37:29 +00:00
poolcounter Convert ParserOutputAccess to PageRecord. 2021-04-05 07:46:34 -06:00
preferences Avoid using User ::getDefaultOption, ::getDefaultOptions 2021-03-16 17:24:17 +02:00
rcfeed
registration Convert ExtensionJsonValidatorTest to pure unit tests 2021-03-22 16:02:51 +00:00
resourceloader The new content-parser-output feature is documented and enabled by default 2021-03-25 00:44:42 +00:00
Rest Remove unused EntryPointTest::$mockHandler 2021-03-14 20:31:57 +00:00
Revision Merge "Use PageStore in RevisionStore" 2021-04-05 19:54:40 +00:00
search PrefixSearchTest: move under /search tests 2021-03-11 21:31:06 +00:00
session Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
shell Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
site Convert MediaWikiPageNameNormalizerTest to a pure unit test 2021-03-11 18:45:57 +00:00
skins Fix location of SideBarTest 2021-03-22 14:47:37 +00:00
sparql
specialpage ActorNormalization should require a DB connection. 2021-03-10 21:43:49 +01:00
specials Merge "Relax AbstractBlock typehints to UserIdentity where possible" 2021-03-22 23:17:55 +00:00
Storage Add support for derived MCR slots 2021-03-18 15:34:46 -04:00
title Make TitleFormatter accept PageIdentity interface 2021-03-24 17:27:19 -04:00
upload Add missing @param and @return to documentation in tests 2021-01-22 19:57:25 +01:00
user Make stricter type checks on user email and real name 2021-04-01 15:21:41 -06:00
utils Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
watcheditem Convert WatchedItem et al to PageIdentity 2021-03-26 15:51:19 -04:00
ActorMigrationTest.php Deprecate UserIdentity::getActorId() 2021-03-13 19:45:57 +01:00
ActorMigrationTest.sql
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php
CommentStoreCommentTest.php
CommentStoreTest.php CommentStoreTest: use mock languages where possible 2021-03-12 09:20:18 +01:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php build: Swap deprecated @codingStandardsIgnore to phpcs:ignore 2021-04-04 21:18:22 +02:00
DiffHistoryBlobTest.php DiffHistoryBlobTest: remove unneeded return 2021-03-08 15:48:12 +00:00
EditPageConstraintsTest.php Convert EditConstraints to Authority 2021-03-03 17:12:07 -07:00
EditPageTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
ExportTest.php Revert "Wrap libxml_disable_entity_loader() calls in version constraint" 2021-01-27 16:06:38 +00:00
ExtraParserTest.php Deprecate InterwikiLoadPrefix hook 2020-12-21 19:28:48 +00:00
FauxRequestTest.php Implement FauxRequest::getPostValues() 2020-11-27 09:38:08 +01:00
GitInfoTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
HooksTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
HtmlTest.php Revert "message boxes: Use CSS classes adhering to class naming scheme" 2021-01-25 16:31:08 +00:00
LinkerTest.php Restore userlink for IP range. 2021-02-11 15:32:36 +01:00
LinkFilterTest.php
MagicWordFactoryTest.php
MediaWikiServicesTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
MediaWikiTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Convert MergeHistory to Authority 2021-03-23 16:52:07 -06:00
MessageTest.php Add Message/MessageValue datetime parameter types 2021-03-30 21:05:32 -06:00
MockServiceWiring.php Use the old HookContainer to set up the post-reset services 2020-12-01 13:04:12 +11:00
MovePageTest.php MovePage: fetch $wgMaximumMovedPages from config 2021-03-29 23:42:16 +00:00
MultiHttpClientTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
MWTimestampTest.php Convert MWTimestamp to UserIdentity 2021-03-11 19:24:16 +00:00
OutputPageTest.php build: Swap deprecated @codingStandardsIgnore to phpcs:ignore 2021-04-04 21:18:22 +02:00
PagePropsTest.php
ReadOnlyModeTest.php
RevisionDbTest.php Use PageStore in RevisionStore 2021-04-05 20:58:54 +02:00
RevisionTest.php Use ActorStore in RevisionStore 2021-02-10 14:37:54 -06:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Fix hang of ApiMainTest 2020-12-16 15:39:19 +11:00
SiteStatsTest.php
StatusTest.php Fix spacing after yield and use statements 2021-03-26 23:55:58 +01:00
TemplateCategoriesTest.php
TestLocalisationCache.php
TestLogger.php
TestUser.php Make stricter type checks on user email and real name 2021-04-01 15:21:41 -06:00
TestUserRegistry.php Remove unneeded @return documentation 2021-01-25 19:44:27 +01:00
TimeAdjustTest.php
TitleMethodsTest.php title: Fix bogus Title::getSkinFromConfigSubpage() 2021-04-01 20:06:16 +02:00
TitleTest.php Merge "title: Fix Title::findSubpageDivider() destroying certain strings" 2021-03-31 07:49:07 +00:00
WebRequestTest.php ProxyLookup: inject hook container 2021-03-30 18:46:53 +00:00
WikiMapTest.php
WikiReferenceTest.php
XmlTest.php Move Xml::expandAttributes tests to unit tests 2021-03-07 19:27:11 +00:00