Test your component
Unit and Integration Tests
Run the PHPUnit based Magento unit and integration tests. For more information see the Magento Testing Overview
For further testing with the Magento functional testing frameworks, see Functional Testing Framework.
Test using Community Edition
Test your component by deploying Magento Community Edition and adding the component to the project’s
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.
Test installing your component
Before you publish your component, you should test installing it using the Magento Component Manager (part of the Magento Admin).
One way to do this follows:
- Package your component in a GitHub repository that’s accessible by the machine on which you run the Magento Admin.
On that machine, create a static route from
https://repo.magento.comto your GitHub repository.
To create a static route, add a line similar to the following to your
<IP or host name of your GitHub repository> https://repo.magento.com
- Install your component exactly like a merchant.
- Verify the component installed properly.
For more information on testing in PHP and validating Magento components, see the following: