wiki.techinc.nl/tests/phpunit/structure
Gergő Tisza 17d001b73a Add string length limits
Adds two new ApiBase::getAllowedParams() keys:
PARAM_MAX_BYTES and PARAM_MAX_CHARS, to set a length
limit for a (string-like) parameter.

This makes it easy to document and enforce database
field length limits (where relying on the database
would either result in unfriendly error messages or
silent truncation, depending on DB settings) and
also exposes them in structured form so API clients
can verify the length without doing roundtrips.

Change-Id: I2e784972d7e11cad79fdef887bbcde297dbd9ce0
2017-11-21 10:24:11 +00:00
..
ApiStructureTest.php Add string length limits 2017-11-21 10:24:11 +00:00
AutoLoaderTest.php AutoloadGenerator: Add support for class_alias() 2017-02-22 21:22:41 +00:00
AvailableRightsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ContentHandlerSanityTest.php Switch to librarized version of TestingAccessWrapper 2017-04-20 14:15:57 +00:00
DatabaseIntegrationTest.php rdbms: Refactor DatabaseTest 2017-07-20 18:23:37 -07:00
ExtensionJsonValidationTest.php Remove unused imports from test classes 2017-01-10 11:49:58 +01:00
ResourcesTest.php phpunit: Include all raw modules in detection of illegal dependencies 2017-10-03 18:13:20 +01:00
StructureTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00