aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/data/registration
Commit message (Collapse)AuthorAgeFilesLines
* registration: Allow multi-line strings in "@" note keysTimo Tijhof2021-04-291-0/+4
| | | | Change-Id: Ifb1a0f04cc22b122ed99308c096d0ce4296e9097
* tests: Add test file to test SPDX license expressionsReedy2020-05-021-0/+5
| | | | | Bug: T251642 Change-Id: I6950ab0c9d0ef080dbe247f5b73458aac4d27f8a
* registration: Implement lazy-loaded attributesKunal Mehta2019-12-151-0/+11
| | | | | | | | | | | | | | | These attributes are only accessed at a time when performance isn't critical (e.g. tests), so we can skip caching them and read each extension.json file again when we do need them. At the same time, we want to reduce the size of the array that we're caching due to PHP 7 performance regressions with APC (T187154). 'QUnitModules' is the first attribute to be converted into a lazy-loaded attribute. Bug: T220994 Change-Id: I224cdace05dbac00ff947c41daecb74b07c967bb
* Remove traling double newlines from text filesFomafix2019-10-231-1/+0
| | | | | | | | | | Performed using: git ls-files \*.json \*.php \*.xml \*.xsd \*.html \*.txt \*.sql | xargs sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' Excluded tests/parser/preprocess. Change-Id: I513538ff13c942acfe589f15c5128a8df2b3ace9
* registration: Allow @-prefixed keys in manifest_version 2Stanislav Malyshev2019-02-121-0/+9
| | | | | | | | As specified in <https://www.mediawiki.org/wiki/Manual:Extension_registration#Retaining_documentation>. Bug: T215650 Change-Id: I2ff523828389fbec39cdf7c55046e7da901a2ecb
* registration: Add ability to check if a specific extension version is loadedMGChecker2018-09-031-0/+13
| | | | | | | | | As it's quite common that extensions and skins interact with each other, it's useful to have a simple way to check if an extension version satisfies a given constraint, as extensions change over time. Bug: T202955 Change-Id: I19f9713caf89d647072a2bd7d598e739be383f4a
* registration: Validate no duplicate keys exist in extension.jsonFlorian Schmidt2018-07-181-0/+4
| | | | | | | | | | | | The JSON specification permits duplicate keys, but doing so is almost always nearly a mistake. We can use the JSON lint library (added as dev-requirement to composer), which is now also used to decode the JSON (as it's the same step as validating the JSON). Bug: T153507 Change-Id: Ia713a1906169333c1aa2aebdc0ed060d26428d72
* registration: Initialize PSR-4 namespaces at same stage as normal autoloaderAntoine Musso2018-05-301-0/+7
| | | | | | | | | | | | | | | readFromQueue() injects the content of AutoloadClasses to $wgAutoloadClasses however it missed doing the same for AutoloadNamespaces. When using the installer with an extension having AutoloadNamespaces set, its classes would not be found. Make ExtensionRegistry append to AutoLoader::$psr4Namespaces, and add a test to cover the new behavior. Bug: T195783 Change-Id: Id61155867a4ca7d9bc4a347f8671da74b0fa490b
* Improve ExtensionRegistry test coverageKunal Mehta2018-05-271-1/+9
| | | | Change-Id: Id1b87e020a220c96b42d86485da67d47b9d565f9
* registration: Perform extra validation for mediawiki.org URLsKunal Mehta2018-05-192-0/+10
| | | | | | | | | If the "url" field in extension.json is pointing to mediawiki.org, perform some extra validation steps: * Require HTTPS * Require the `www.mediawiki.org` canonical domain Change-Id: I3371443d3f6c76f53437adf90a700969bba7d0e7
* Add tests for ExtensionJsonValidatorKunal Mehta2018-02-097-0/+27
Change-Id: I883a502fc3ed6cd7b8651d9e5e78dba7177ead9c