sylius-plugin plugin-sylius
ToroPay plugin for Sylius.
toropay/plugin-sylius
ToroPay plugin for Sylius.
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 8 % Grown
, (*1)
Plugin Skeleton
, (*2)
Installation
-
Run composer create-project sylius/plugin-skeleton ProjectName
., (*3)
-
From the plugin skeleton root directory, run the following commands:, (*4)
$ (cd tests/Application && yarn install)
$ (cd tests/Application && yarn run gulp)
$ (cd tests/Application && bin/console assets:install web -e test)
$ (cd tests/Application && bin/console doctrine:database:create -e test)
$ (cd tests/Application && bin/console doctrine:schema:create -e test)
Usage
Running plugin tests
-
PHPUnit, (*5)
$ bin/phpunit
-
PHPSpec, (*6)
$ bin/phpspec run
-
Behat (non-JS scenarios), (*7)
$ bin/behat --tags="~@javascript"
-
Behat (JS scenarios), (*8)
-
Download Chromedriver, (*9)
-
Run Selenium server with previously downloaded Chromedriver:, (*10)
$ bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver
-
Run test application's webserver on localhost:8080
:, (*11)
$ (cd tests/Application && bin/console server:run 127.0.0.1:8080 -d web -e test)
-
Run Behat:, (*12)
$ bin/behat --tags="@javascript"
Opening Sylius with your plugin
-
Using test
environment:, (*13)
$ (cd tests/Application && bin/console sylius:fixtures:load -e test)
$ (cd tests/Application && bin/console server:run -d web -e test)
-
Using dev
environment:, (*14)
$ (cd tests/Application && bin/console sylius:fixtures:load -e dev)
$ (cd tests/Application && bin/console server:run -d web -e dev)