2017 © Pedro Peláez
 

sylius-plugin sylius-settings-plugin

PhpMob settings plugin for Sylius.

image

phpmob/sylius-settings-plugin

PhpMob settings plugin for Sylius.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

, (*1)

Plugin Skeleton

, (*2)

Installation

  1. Run composer create-project sylius/plugin-skeleton ProjectName., (*3)

  2. 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)

    1. Download Chromedriver, (*9)

    2. Run Selenium server with previously downloaded Chromedriver:, (*10)

      $ bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver
      
    3. 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)
      
    4. 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)
    

The Versions