-
Clone the repo to a local folder and install composer dependencies using the following command:
$ composer install
-
From the plugin root directory, run the following commands:
$ (cd tests/Application && yarn install) $ (cd tests/Application && yarn build) $ (cd tests/Application && bin/console assets:install public -e test) $ (cd tests/Application && bin/console doctrine:database:create -e test) $ (cd tests/Application && bin/console doctrine:schema:create -e test)
Don't forget to set your database credentials in the .env file.
-
Using
dev
environment:$ (cd tests/Application && bin/console sylius:fixtures:load -e dev) $ (cd tests/Application && bin/console server:run -d public -e dev)
-
Easy Coding Standard
$ vendor/bin/ecs check src
-
PHPStan
vendor/bin/phpstan analyse -c phpstan.neon -l max src/