Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 903 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 903 Bytes

Example n98-magerun2 Module

n98-magerun Logo

This example contains:

  • ddev Dev Setup
  • PHPUnit Test Setup

ddev

Install ddev and the enter ddev start in you CLI.

After the project start the hook script .ddev/hook_01_setup.sh will try to install Magento in the started web container. Installation requires that some variables, holding the Magento installation keys, are defined in your ddev config.

MAGENTO_REPO_USERNAME=<public-key>
MAGENTO_REPO_PASSWORD=<private-key>

https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#providing-custom-environment-variables-to-a-container

Test Setup

The n98-magerun Test Framework is installed as dev dependency.

You can start the unit test by ddev exec vendor/bin/phpunit.