Exercises for the Test Driven Magento course. The exercise descriptions are in the Wiki
To get started with TDD Katas (not Magento), refer to this tutorial: Get Ready for TDD Katas with PHPUnit + PhpStorm
If you use Docker, a Magento 2 dev environment which is suitable for tests, can be created as follows:
-
Install Magento via composer
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <installation directory name> --ignore-platform-reqs
More info: http://devdocs.magento.com/guides/v2.2/install-gde/prereq/integrator_install_ce.html
-
Install the dockerize-magento2 component
composer require --ignore-platform-reqs tddwizard/magento2-dockerized:@dev
-
Install the test configuration for the exercises:
composer require tddwizard/magento2-exercises:@dev
Or download and copy the files from
dev
in this repository manually intodev
of your Magento installation