PHP 7.3 reached end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. You may want to consider planning your upgrade now to Adobe Commerce 2.4.x and PHP 7.4.x to help maintain PCI compliance.

Test your component

Unit and Integration Tests

Run the PHPUnit based Magento unit and integration tests. See the Magento Testing Overview.

Functional testing

For further testing with the Magento functional testing frameworks, see [Functional Testing Framework] and Magento Functional Testing Framework.

Test using Magento Open Source

Test your component by deploying Magento Open Source and adding the component to the project’s composer.json. To install, see Install using Composer.

"require": {
    "magento/magento-composer-installer": "*",
    "yourvendorname/module-one": "0.1.1"

Register your component, including the file location. Verify it works as expected, without compromising Magento functionality.

Test installing your component

Before you publish your component, test installing it.

  1. Package your component in a GitHub repository that is accessible by the machine on which you run the Admin.
  2. On that machine, create a static route from to your GitHub repository.

    To create a static route, add a line similar to the following to your hosts file:

     <IP or hostname of your GitHub repository>
  3. Install your component.
  4. Verify it installed correctly.

More information

See these resources for testing in PHP and validating Magento components: