This project aims to get a quick intro to the Commercetools Platform.
https://github.com/commercetools/commercetools-php-training
Setup project:
composer installRunning Training tests:
env $(cat parameters.env | xargs) vendor/bin/phpunitBuild runtime image from scratch:
docker build -t sphereio/commercetools-php-training .Setup:
docker run --rm -v${PWD}:/app -w /app sphereio/commercetools-php-training composer installRunning Training tests:
docker-compose upor
docker run --rm --env-file parameters.env -v${PWD}:/app -w /app sphereio/commercetools-php-training vendor/bin/phpunitSetup and starting the application:
vagrant upRunning Training tests:
vagrant ssh -c 'cd training; env $(cat parameters.env | xargs) vendor/bin/phpunit'Languages > Frameworks > PHP : Select CLI interpreter
Languages > Frameworks > PHP > Testframeworks :
Add local entry for PHPUnit: Use composer autoloader
Default configuration file: phpunit.xml.dist
Languages > Frameworks > PHP > Testframeworks :
Add remote entry for PHPUnit: Use composer autoloader
Default configuration file: phpunit.xml.dist
Run/Debug Configurations
Add PHPUnit entry: defined in the configuration file