chadha/mlm-unilevel-plugin

Plugin enables the Unilevel MLM Network plan for Sylius

This package is auto-updated.

Last update: 2024-02-29 02:53:03 UTC


README

687474703a2f2f64656d6f2e73796c6975732e6f72672f6173736574732f73686f702f696d672f6c6f676f2e706e67

Plugin Skeleton

68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73796c6975732f706c7567696e2d736b656c65746f6e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796c6975732f706c7567696e2d736b656c65746f6e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f53796c6975732f506c7567696e536b656c65746f6e2f6d61737465722e737667 68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f53796c6975732f506c7567696e536b656c65746f6e2e737667

Installation

  1. Run composer create-project sylius/plugin-skeleton ProjectName.

  2. From the plugin skeleton root directory, run the following commands:

    $ (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

    $ bin/phpunit
  • PHPSpec

    $ bin/phpspec run
  • Behat (non-JS scenarios)

    $ bin/behat --tags="~@javascript"
  • Behat (JS scenarios)

    1. Download Chromedriver

    2. Run Selenium server with previously downloaded Chromedriver:

      $ bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver
    3. Run test application's webserver on localhost:8080:

      $ (cd tests/Application && bin/console server:run 127.0.0.1:8080 -d web -e test)
    4. Run Behat:

      $ bin/behat --tags="@javascript"

Opening Sylius with your plugin

  • Using test environment:

    $ (cd tests/Application && bin/console sylius:fixtures:load -e test)
    $ (cd tests/Application && bin/console server:run -d web -e test)
  • Using dev environment:

    $ (cd tests/Application && bin/console sylius:fixtures:load -e dev)
    $ (cd tests/Application && bin/console server:run -d web -e dev)