wiki.techinc.nl/tests/phpunit/structure
Kunal Mehta f6644c07cb registration: Improve license-name validation
Our hardcoded enum list in the extension.json schema for license-name
values was incomplete and did not cover the full SPDX license identifier
specification, which includes things like "AND" for specifying multiple
licenses.

Composer already has solid code in a library to do this validation, so
let's use it! This updates both the validateRegistrationFile.php and
ExtensionJsonValidationTest.php to use the composer/spdx-licenses
library (a new development dependency) to ensure the license-name field
is a valid SPDX identifier.

Also fix a silly typo in the validateRegistrationFile script which
prevented it from running, and use ::class so it will be easier to
detect typos like that in the future.

Bug: T146862
Change-Id: Ibb8973ed7950ae81c90558f9630f73746b2aff2c
2016-09-28 20:50:48 +00:00
..
ApiDocumentationTest.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
AutoLoaderTest.php Structure test: Add autoload.php order check 2016-08-03 09:50:27 +00:00
AvailableRightsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ContentHandlerSanityTest.php Add structure test for ContentHandler::makeEmptyContent() 2016-09-10 01:55:18 -07:00
ExtensionJsonValidationTest.php registration: Improve license-name validation 2016-09-28 20:50:48 +00:00
ResourcesTest.php resourceloader: Add structure unit test to confirm messages exist 2016-08-17 20:07:43 +00:00
StructureTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00