docker-compose build
docker-compose up
docker-compose exec php bin/console doctrine:database:create --if-not-exists
docker-compose exec php bin/console doctrine:migrations:migrate -n
docker-compose exec php bin/console hautelook:fixtures:load --no-bundles -n
- Decide on a token value to use
- Create an MD5 hash of that value
- Set the hashed value as
API_TOKEN
in.env.local
and.env.test.local
- Use the original token value as the value of the
X-AUTH-TOKEN
header value when making API requests
List available endpoints
php ./bin/console debug:router
php ./bin/console doctrine:database:create --if-not-exists --env=test
php ./bin/console doctrine:migrations:migrate -n --env=test
SYMFONY_PHPUNIT_VERSION=8
export SYMFONY_PHPUNIT_VERSION
php ./bin/phpunit
php ./bin/phpunit
or with php-xdebug installed locally
php ./bin/phpunit --coverage-html coverage --coverage-text