wiki.techinc.nl/tests/phpunit/unit/includes
Tim Starling 2f6b427f40 In Rest\ResponseFactory, substitute invalid UTF-8
Most of the time this is due to garbage user input, and MediaWiki's
normal handling of user input strings is to normalize them, not to
throw.

There are some hypothetical cases where a developer might want to see an
exception, rather than passing garbage to the client and letting the
client fail, but normalization is a defensible policy and works within
the existing interfaces.

Bug: T289597
Change-Id: Ida5ee72c10d1c3499b5b17594c5675db7cd38335
2021-08-26 08:58:45 +10:00
..
actions ActionFactory: restore missing check for non-existent classes 2021-08-19 14:22:11 +00:00
api Move ApiWatchlistTraitTest back to unit tests 2021-07-06 20:37:45 +00:00
auth Hard deprecate the setters of AbstractAuthenticationProvider class 2021-05-31 13:02:39 +00:00
block Add UserNameUtils to DummyServicesTrait, and use it 2021-07-27 12:17:06 +00:00
cache LinkBatch: replace Title with PageReference in method signatures 2021-04-26 19:54:24 +02:00
changes build: Updating dependencies 2021-07-22 03:36:05 +00:00
composer
config Introduce includes/Storage/PageUpdaterFactory 2021-07-19 12:15:26 +02:00
content build: Updating dependencies 2021-07-22 03:36:05 +00:00
context Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
dao Give WikiAwareEntityTrait it's own unit tests. 2021-04-27 20:31:14 -07:00
db Convert MWLBFactoryTest to pure unit tests 2021-04-14 16:48:30 +00:00
debug build: Updating dependencies 2021-07-22 03:36:05 +00:00
deferred
diff Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
editpage Replace easy usages of User for UserIdentity/Authority 2021-06-09 07:53:52 -07:00
exception build: Updating dependencies 2021-07-22 03:36:05 +00:00
filebackend build: Updating dependencies 2021-07-22 03:36:05 +00:00
filerepo/file
GlobalFunctions
historyblob build: Updating dependencies 2021-07-22 03:36:05 +00:00
HookContainer build: Updating dependencies 2021-07-22 03:36:05 +00:00
htmlform
http Move HttpRequestFactoryTest to a unit test 2021-06-02 13:20:02 +00:00
import WikiImporter: inject services 2021-05-24 23:10:07 +02:00
installer
interwiki build: Updating dependencies 2021-07-22 03:36:05 +00:00
jobqueue build: Updating dependencies 2021-07-22 03:36:05 +00:00
json FormatJson: Add message for JSON_ERROR_INVALID_PROPERTY_NAME 2021-08-16 10:57:14 -04:00
language build: Suppress ObjectTypeHintReturn for upcoming sniff change 2021-08-05 23:01:55 +00:00
libs Merge "rdbms: add unique key checks to upsert() and replace() in Database" 2021-08-23 06:57:33 +00:00
linker build: Updating dependencies 2021-07-22 03:36:05 +00:00
mail Make MailAddressTest a unit test 2021-07-23 10:30:04 +00:00
media IPTCTest: use a data provider 2021-08-05 05:40:25 +00:00
Message
objectcache build: Updating dependencies 2021-07-22 03:36:05 +00:00
page Clean up MergeHistory 2021-07-13 12:01:04 -07:00
ParamValidator/TypeDef NamespaceDefTest: stop calling getNamespaces() statically 2021-05-20 23:52:47 +00:00
parser parser: Replace deprecated MWHttpRequest::factory 2021-08-04 13:22:50 +00:00
password build: Updating dependencies 2021-07-22 03:36:05 +00:00
Permissions build: Updating dependencies 2021-07-22 03:36:05 +00:00
poolcounter phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
preferences build: Updating dependencies 2021-07-22 03:36:05 +00:00
registration Update Legoktm's email address 2021-05-02 05:39:37 +00:00
resourceloader tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
Rest In Rest\ResponseFactory, substitute invalid UTF-8 2021-08-26 08:58:45 +10:00
Revision Narrow PageUpdater dependency from Title 2021-07-26 19:45:11 -07:00
revisionlist
search phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
session Move CRSF token generation to CsrfTokenSet 2021-06-18 12:24:19 -07:00
shell Add support for multiple shellbox URLs through a mapping configuration 2021-06-21 14:14:44 +02:00
site
skins build: Updating dependencies 2021-07-22 03:36:05 +00:00
Storage Merge "Narrow PageUpdater dependency from Title" 2021-07-27 21:38:53 +00:00
tidy
title build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
user Merge "UserNameUtilsTest: avoid duplication in testGetCanonical_interwiki" 2021-08-10 03:49:37 +00:00
utils build: Updating dependencies 2021-07-22 03:36:05 +00:00
watcheditem Reduce duplication in NoWriteWatchedItemStoreUnitTest 2021-07-23 08:07:46 +00:00
watchlist Add DummyServicesTrait::getDummyReadOnlyMode() 2021-07-05 07:16:13 +00:00
BadFileLookupTest.php Use DummyServicesTrait for BadFileLookupTest TitleParser 2021-07-28 20:50:20 +00:00
DeprecatedGlobalTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
DerivativeRequestTest.php
FactoryArgTestTrait.php Remove some more comments that literally repeat the code 2021-06-18 21:23:56 +00:00
FauxResponseTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
FeedUtilsTest.php
FormOptionsInitializationTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
FormOptionsTest.php
HeaderCallbackTest.php
LicensesTest.php
ListToggleTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
MovePageTest.php build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
PathRouterTest.php Remove PathRouterTest::$basicRouter, unused 2021-05-05 20:33:54 +00:00
PingbackTest.php Merge "Simplify and reduce duplication in PingbackTest" 2021-07-23 04:16:56 +00:00
ProxyLookupTest.php Add tests for ProxyLookup 2021-03-31 00:21:24 +00:00
SiteConfigurationTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
TitleArrayFromResultTest.php Replace PHPUnit ->returnValue() with ->willReturn() shortcut 2021-04-22 10:37:45 +02:00
TitleTest.php Move some Title tests to unit tests 2021-07-09 23:18:57 +00:00
WikiReferenceTest.php Move WikiReferenceTest to a unit test 2021-05-02 10:00:52 +00:00
XmlJsTest.php
XmlSelectTest.php
XmlTest.php