wiki.techinc.nl/tests/phpunit/data
Timo Tijhof 75ccdc6147 languages: Move default $wgNamespaceAliases to MessagesEn.php
These are not configuration but business logic, similar to the
canonical names that are in NamespaceInfo.php, these must always
exist and cannot be altered or unset.

They were previously unconditionally assigned during all requests
in Setup.php and passed down as "site configuration".

Changes:

* Move them to MessagesEn.php where they can be cached and
  processed the same way as other core-provided aliases.

  Document and confirm with tests that this is a mergeable
  attribute that follows the language chain.

* Remove the duplicated code in a few places that was reading
  this variable + Language::getNamespaceAliases(), to instead
  just call the latter and move the logic there, centralised,
  and tested.

  In doing so I noticed that these were applied in an
  inconsistent order. Sometimes the config won, sometimes not.
  There's no obvious right or wrong way here, but I've chosen
  to standardise on the way that Language::getNamespaceIds() did
  it, which is that config wins. This because that method seems
  to be most widely used of the three (it decides how URLs and
  titles are parsed), and thus the one I least want to change
  the behaviour of.

* Document that $wgNamespaceAliases may only be used to
  define (extra) aliases, it is and never was a way to access
  the complete list of aliases.

Bug: T189966
Change-Id: Ibb14181aba8c1b509264ed40523e9ab4000fd71a
2020-03-14 19:27:40 +00:00
..
autoloader Improve AutoLoader test coverage 2018-05-26 21:29:36 -07:00
categoriesrdf Fix categories detele SPARQL clause 2019-08-27 16:19:31 -07:00
composer ComposerInstalledTest: remove mentions of phpunit-mock-objects 2019-11-21 12:59:45 -08:00
css
cssmin CSSMin: Remove XML declaration from SVGs 2018-01-11 19:28:15 -08:00
db Improve tests in DoctrineSchemaBuilder 2019-11-22 19:53:10 +01:00
filecontentshasher
filerepo
gitinfo
import Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
less resourceloader: Add test case for ResourceLoader::getLessCompiler 2018-05-19 23:06:54 +00:00
localisationcache
media Fix XMP parser errors due to trailing nullchar 2019-09-11 22:34:33 +00:00
messages languages: Move default $wgNamespaceAliases to MessagesEn.php 2020-03-14 19:27:40 +00:00
MSCompoundFileReader Better detection for old MS Office files 2019-01-23 09:23:17 +11:00
parser
registration registration: Implement lazy-loaded attributes 2019-12-15 19:04:50 +00:00
resourceloader resourceloader: Support single-file component .vue files 2020-03-12 14:32:41 -07: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