Skip to content

Example n98-magerun2 module with a ddev and test setup for demonstration

License

Notifications You must be signed in to change notification settings

netz98/n98-magerun2-example-module

Repository files navigation

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.

About

Example n98-magerun2 module with a ddev and test setup for demonstration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published