I wrote a module including phpunit test xml file. I want to automatically copy that xml file under dev/tests/unit/ after composer update.

The composer.json of the module looks like

    "name": "myvendor/mymodule",
    "description": "myvendor mymodule",
    "require": {
        "php": "~5.5.22|~5.6.0|~7.0.2|7.0.4|~7.0.6"
    "type": "magento2-module",
    "version": "1.0.0",
    "license": [
    "autoload": {
        "files": [ "registration.php" ],
        "psr-4": {
            "MyVendor\\MyModule\\": ""
    "extra": {
        "map": [

But the node extra/map does not work.


This only works with the magento2-component package type, not with magento2-module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.