wiki.techinc.nl/tests/phpunit/unit/includes/Rest
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
..
BasicAccess Convert MWBasicRequestAuthorizerTest to a unit test 2021-04-23 23:35:09 +00:00
Handler Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
HeaderParser tests: Remove @param docs from test code that just repeat the signature 2021-01-21 03:41:23 +00:00
PathTemplateMatcher
Validator build: Update mediawiki/mediawiki-codesniffer to 35.0.0 2021-01-31 13:34:38 +00:00
ConditionalHeaderUtilTest.php Conditional request support 2019-10-14 12:01:25 +11:00
CorsUtilsTest.php Make REST CORS allowed headers respect site configuration. 2021-05-30 10:15:47 -07:00
HeaderContainerTest.php
ResponseFactoryTest.php In Rest\ResponseFactory, substitute invalid UTF-8 2021-08-26 08:58:45 +10:00
RouterTest.php Add missing @param and @return to documentation in tests 2021-01-22 19:57:25 +01:00
StringStreamTest.php tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
testAdditionalRoutes.json Add config variable $wgRestAPIAdditionalRouteFiles 2020-03-23 10:22:58 -05:00
testRoutes.json Convert MWBasicRequestAuthorizerTest to a unit test 2021-04-23 23:35:09 +00:00