Close [x]

Test your component

Edit this page on GitHub

Test your component

Test your component by deploying Magento Community Edition and adding the component to the project鈥檚 composer.json.

"require": {
    "magento/magento-composer-installer": "*",
    "magento/product-community-edition": "2.0.0",
    "foovendor/module-one": "0.1.1"
},

Remember to register your component as well, adding the location of your component. Confirm that your component works as expected and Magento functionality is not compromised.

For further testing with Magento testing frameworks, see Magento Testing Framework.

PHPUnit

PHPUnit is a PHP testing framework ideal for Magento programmers. Test your component with PHPUnit, available on GitHub at https://github.com/sebastianbergmann/phpunit.

More Information

For more information on testing in PHP and validating Magento components, see the following: