wiki.techinc.nl/tests/phpunit/data
mainframe98 de0c4819d1 Add validation for abstract schema
This adds an option to the schema generating maintenance scripts to
validate abstract schemas and schema changes and a structure test to
validate exisiting schemas and schema changes. Schemas are also
validated when generating.

The validation for the schema doesn't impose limits on table, index or
column names as I couldn't find any reliable conventions for them.

The structure tests only cover MediaWiki itself as there is no
convention on where extensions store their abstract schema.
Ideally, auto detection would be possible for sql/, but for now
extensions have to define their own (thankfully trivial) tests.

A couple of invalid definitions were fixed thanks to these tests.

I aimed to be thorough, but not all parts of the abstract schema
are completely clear, and Doctrine's documentation is not complete.
As a result, not everything has a description field.

Bug: T298320
Change-Id: I681d265317d4d1584869142ebb23d4098c06885f
2022-02-22 17:41:08 +00:00
..
autoloader Improve AutoLoader test coverage 2018-05-26 21:29:36 -07:00
categoriesrdf Write category parent hierarchy when handling categorization 2020-07-31 12:14:13 +02:00
composer tests: Remove unused composer.json sample data 2021-06-08 23:56:01 +00:00
css CSSJanus: Update from version 1.3.0 to version 2.0.0 2021-08-16 18:39:41 +00:00
db Add validation for abstract schema 2022-02-22 17:41:08 +00:00
dumps Make dump tests based on fixture files. 2020-04-06 15:21:00 -07:00
exception build: Updating dependencies 2021-07-22 03:36:05 +00:00
filecontentshasher
filerepo
GhostFieldAccess Forward-compat for merging CacheTime and ParserOutput mOptions 2020-11-10 07:09:41 -07:00
gitinfo
import Check for unknown slot. 2020-07-20 10:39:28 -04:00
less resourceloader: Fail gracefully if a LESS message is not found 2021-01-07 15:41:02 -08:00
localisationcache Don't fallback from uk to ru 2016-11-23 19:24:54 +02:00
media Ignore invalid chunks in PNG files, instead of aborting metadata extraction 2021-07-13 11:11:03 +10:00
messages languages: Move default $wgNamespaceAliases to MessagesEn.php 2020-03-14 19:27:40 +00:00
MSCompoundFileReader Remove the executable flag from test files 2021-10-16 11:23:02 +00:00
parser
ParserCache Merge "Change return value of ParserOutput::getPageProperty() when property is missing" 2022-02-19 00:49:48 +00:00
registration registration: Allow multi-line strings in "@" note keys 2021-04-29 02:47:47 +01:00
resourceloader build: Update eslint-config-wikimedia to 0.21.0 2021-11-09 21:08:55 +00:00
rlfilepath Allow skins/extensions to define custom OOUI themes 2019-07-10 22:08:14 +02:00
templates TemplateParserTest: Add test case with syntax error 2020-01-29 23:15:53 +00:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
zip
.eslintrc.json eslint: Only apply client rules to client files 2022-02-09 02:40:11 +00:00